Commit graph

4088 commits

Author SHA1 Message Date
Dmitry Gutov
3e2377ce2f Fix bug#16762
* lisp/emacs-lisp/package.el (package--add-to-archive-contents):
Include already installed and built-in packages in
`package-archive-contents'.
(package-install): Don't include already installed packages in the
options on interactive invocation.
2014-03-25 00:38:06 +02:00
Daniel Colascione
544ab460f5 Backport &key-parsing improvement from trunk 2014-03-24 13:41:08 -07:00
Dmitry Gutov
2614c1af39 * lisp/emacs-lisp/package.el (package-show-package-list): If the buffer
is already displayed in another window, switch to that window.
2014-03-23 10:35:56 +02:00
Daniel Colascione
7eab98da1b Fix keyword argument parsing. Please bootstrap. 2014-03-22 23:00:18 -07:00
Dmitry Gutov
1197f2e665 Fix bug#16873
* lisp/emacs-lisp/package.el (package-desc): Use the contents of the
quoted form, not its cdr.
2014-03-22 10:43:30 +02:00
Dmitry Gutov
dcf7866712 Fix bug#16826
* lisp/emacs-lisp/package.el (package-compute-transaction):
Use `version-list-<=' to compare the requirement version against
the package version already to be installed.  Update the error
message.
2014-03-21 08:06:52 +02:00
Stefan Monnier
049fac7c94 * lisp/emacs-lisp/nadvice.el (advice--make-docstring): Try harder to find
the docstring of functions advised before dumping.
* src/doc.c (store_function_docstring): Warn when we don't know where to
put a docstring.
(Fsubstitute_command_keys): Don't advertise the fact that
text-properties are dropped, since we think it's a bug that we'll fix
in 24.5.

Fixes: debbugs:16993
2014-03-20 12:00:17 -04:00
Juanma Barranquero
f88bdc45e0 lisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733). 2014-03-19 17:14:26 +01:00
Stefan Monnier
adbfe42cd9 * lisp/emacs-lisp/nadvice.el (advice--interactive-form): New function.
(advice--make-interactive-form): Use it to avoid (auto)loading function.
(advice--make-1, advice-add, advice-remove):
Remove braindead :advice-pending hack.
2014-03-17 14:30:53 -04:00
Dmitry Gutov
4f8aeb84b6 Fix debbugs#16971
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Set
`comment-use-syntax' to t to avoid the unnecessary runtime check.
Set `comment-start-skip' to a simpler value that doesn't try to
check if the semicolon is escaped (this is handled by
`syntax-ppss' now). 

* lisp/progmodes/scheme.el (scheme-mode-variables): Same.
2014-03-17 08:22:58 +02:00
Glenn Morris
881033454a * package.el (package-menu-mode-map): Replace use of obsolete function alias.
Tweak menu item text.
2014-03-14 16:55:40 -04:00
Glenn Morris
56759cf12a Move some help functions from help-fns.el to help.el, which is preloaded.
They are now needed by eg the function `documentation' in some circumstances.

* lisp/help-fns.el (help-split-fundoc, help-add-fundoc-usage)
(help-function-arglist, help-make-usage): Move from here...

* lisp/help.el (help-split-fundoc, help-add-fundoc-usage)
(help-function-arglist, help-make-usage): ... to here. 

* lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Do not load help-fns.

Fixes: debbugs:17001
2014-03-13 20:32:41 -04:00
Tom Willemse
0d71dfb381 * lisp/emacs-lisp/package.el (package--prepare-dependencies):
Accept requirements without explicit version.

Fixes: debbugs:14941
2014-03-13 09:34:01 -04:00
Jonas Bernoulli
08dfa0b75e lisp/emacs-lisp/eieio.el (with-slots): Use cl-symbol-macrolet (bug#16998). 2014-03-12 16:02:45 +01:00
Stefan Monnier
1ea2256000 * lisp/emacs-lisp/nadvice.el (advice--make-1): Fix autoloading avoidance.
(advice-add): Add a :advice--pending marker, so advice--make-1 knows
when the advice is pending.
(advice-remove): Remove this marker when not needed any more.
2014-03-10 21:22:24 -04:00
Glenn Morris
ba1a5c78f2 * lisp/emacs-lisp/advice.el (ad-add-advice, defadvice): Doc fix
remove references to deleted info nodes.
2014-03-10 14:16:13 -04:00
Leo Liu
6f0f96e756 * emacs-lisp/eldoc.el (eldoc-minibuffer-message): Clear
eldoc-last-message.

Fixes: debbugs:16920
2014-03-10 13:33:31 +08:00
Glenn Morris
c94e6ee499 * lisp/emacs-lisp/shadow.el (load-path-shadows-find): Ignore dir-locals.
Fixes: debbugs:12357
2014-03-05 21:01:02 -05:00
Glenn Morris
d82e752c05 Small smie.el doc and fix
* lisp/emacs-lisp/smie.el (smie-config-guess): Doc fix.
Explicit error if no grammar.
(smie-config-save): Doc fix.  Fix quote typo.

* etc/NEWS: Related edit.
2014-03-04 00:35:11 -08:00
Glenn Morris
d926361813 Some crm.el doc
* lisp/emacs-lisp/crm.el: Remove commentary that duplicates doc strings.
(crm-default-separator, crm-separator) (completing-read-multiple):
Doc fixes.

* etc/NEWS: Related edit.
2014-02-26 23:42:57 -08:00
Glenn Morris
b77cfcd762 * emacs-lisp/crm.el (completing-read-multiple): Empower help-enable-auto-load. 2014-02-26 20:17:40 -08:00
Dmitry Gutov
b2388336fe * lisp/emacs-lisp/lisp.el (lisp--local-variables): Catch `end-of-file'
error from `read-from-string'.

Fixes: debbugs:16850
2014-02-26 04:31:27 +02:00
Dmitry Gutov
40ff7f86b6 * lisp/emacs-lisp/ert.el (ert-run-tests-interactively): `read' the
result of `completing-read' in the interactive form.

Fixes: debbugs:16854
2014-02-26 04:02:21 +02:00
Glenn Morris
c107155e62 * lisp/emacs-lisp/edebug.el (defmacro): Fix debug spec.
Fixes: debbugs:16868
2014-02-25 16:55:45 -05:00
Leo Liu
8ee4c296ec * emacs-lisp/easy-mmode.el (define-minor-mode): Fix debug spec. 2014-02-24 11:55:17 +08:00
Juanma Barranquero
f35affb60f lisp/emacs-lisp/gv.el: Avoid duplicating entries of defun-declaration-alist. 2014-02-21 20:01:19 +01:00
Stefan Monnier
3d136b1b72 * lisp/emacs-lisp/cl-macs.el (cl-define-compiler-macro): Add indent rule.
Fixes: debbugs:16829
2014-02-21 12:45:26 -05:00
Glenn Morris
a215930cfe Some package doc updates
* doc/emacs/help.texi (Package Keywords): Mention describe-package buttons.

* doc/emacs/package.texi (Package Menu): Mention package-menu-filter.

* lisp/emacs-lisp/package.el (package-menu-mode-map): Tweak menu.
(package-menu-filter): Rename from package-menu-filter-interactive.
Doc fix.

* etc/NEWS: Related edits.  Copyedit.
2014-02-11 20:20:34 -05:00
Glenn Morris
2b44e4584b * lisp/emacs-lisp/lisp-mnt.el: Comments. 2014-02-10 00:36:27 -08:00
Lars Ingebrigtsen
3bd1d8a8e0 * emacs-lisp/lisp.el (up-list): Doc fix.
Fixes: debbugs:15832
2014-02-09 21:50:16 -08:00
Glenn Morris
2ab0ad8563 * lisp/emacs-lisp/gulp.el (gulp-discard): Add emacs-devel. 2014-02-09 17:38:56 -08:00
Glenn Morris
97bbf637c4 * lisp/emacs-lisp/lisp-mnt.el: Undocument "FSF" maintainer in commentary. 2014-02-09 17:37:11 -08:00
Glenn Morris
34dc21db6e Replace "Maintainer: FSF" with the emacs-devel mailing address 2014-02-09 17:34:22 -08:00
Glenn Morris
2abd71e50c * lisp/emacs-lisp/warnings.el (lwarn): Empower help-enable-auto-load.
Fixes: debbugs:15940
2014-02-08 16:20:12 -08:00
Glenn Morris
e92e30dd30 "Use instead" obsolescence messages should end with "." 2014-02-06 19:23:46 -08:00
Glenn Morris
2b568bc90b Move iswitchb.el to obsolete/
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00501.html

* lisp/obsolete/iswitchb.el: Move to obsolete/.

* lisp/simple.el (iswitchb-mode): Add manual autoloads to ease transition,
since obsolete/ is not scanned for autoloads.

* lisp/emacs-lisp/authors.el (authors-valid-file-names):
Add iswitchb.el.

* doc/emacs/ack.texi (Acknowledgments): No longer mention obsolete files.

* doc/misc/viper.texi (File and Buffer Handling): Prefer ido to iswitchb.

* etc/NEWS: Related edits.
2014-02-06 19:22:34 -08:00
Stefan Monnier
29127376a5 * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Symbols don't start
with a space.  Limit the symbols considered to the ones
that are bound or fbound (bug#16646).

Fixes: debbugs:16664
2014-02-06 00:37:23 -05:00
Dmitry Gutov
a333e4d297 Define and use `completion-table-merge'
* lisp/minibuffer.el (completion-table-merge): New function.

* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Use
`completion-table-merge' instead of `completion-table-in-turn'.

Fixes: debbugs:16604
2014-02-06 03:22:38 +02:00
Anders Lindgren
08e4189736 * lisp/emacs-lisp/ert.el (ert--activate-font-lock-keywords): Allow dashes in
the names.

Fixes: debbugs:16620
2014-02-04 12:37:08 -05:00
Stefan Monnier
70e5a261ac * lisp/help-fns.el (help-C-file-name): Handle advised functions.
* lisp/emacs-lisp/find-func.el (find-function-C-source): Idem.
* lisp/emacs-lisp/nadvice.el (advice--cd*r): New function.
* help-fns.el (describe-function-1): Use it.

Fixes: debbugs:16478
2014-02-01 21:25:05 -05:00
Glenn Morris
9997d7e3e3 trace.el doc updates
* lisp/emacs-lisp/trace.el (trace--read-args, trace-function-foreground)
(trace-function-background): Doc fixes.

Commentary update for this package now using nadvice.el, not advice.el.

* etc/NEWS: Related edits.
2014-01-30 23:15:54 -08:00
Glenn Morris
b169c4cc37 Auto-commit of loaddefs files. 2014-01-30 06:19:16 -05:00
Glenn Morris
314ff31814 * etc/NEWS: ElDoc related edit.
* lisp/emacs-lisp/eldoc.el: Related commentary.
2014-01-29 23:54:28 -08:00
Glenn Morris
ad78f43200 Replace refs to obsolete alias turn-on-eldoc-mode' with eldoc-mode'
* lisp/hexl.el (hexl-mode-hook):
* lisp/ielm.el (ielm-mode-hook):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-hook)
(lisp-interaction-mode-hook):
* lisp/progmodes/cfengine.e (cfengine3-documentation-function):
Replace obsolete alias `turn-on-eldoc-mode' with `eldoc-mode'.

* lisp/emacs-lisp/eldoc.el: Same in commentary.
2014-01-29 23:42:57 -08:00
Stefan Monnier
566cb04bdf * eieio-opt.el (eieio-help-generic): Fix last change.
Fixes: debbugs:16584
2014-01-29 23:13:00 -05:00
Stefan Monnier
7b2f049c83 * lisp/emacs-lisp/eieio-opt.el (eieio-help-generic): Don't assume `generic'
is a symbol.

Fixes: debbugs:16584
2014-01-29 23:02:28 -05:00
Juanma Barranquero
76c3fa958f Silence byte-compiler warning.
* emacs-lisp/bytecomp.el (byte-compile-file):
Remove unused local variable `file-name'.
2014-01-24 05:13:35 +01:00
Stefan Monnier
d4f0427be7 * lisp/emacs-lisp/cl-macs.el: Improve type->predicate mapping.
(cl--macroexp-fboundp): New function.
(cl--make-type-test): Use it.

Fixes: debbugs:16520
2014-01-23 10:01:41 -05:00
Glenn Morris
1670e27f38 Doc fixes related to zero prefix argument of eval-expression etc
* emacs-lisp/lisp-mode.el (eval-print-last-sexp, eval-last-sexp):
* simple.el (eval-expression): Doc fixes.
2014-01-22 23:53:56 -08:00
Glenn Morris
80efa207d4 * lisp/emacs-lisp/authors.el (authors-fixed-entries): Addition. 2014-01-22 15:05:03 -05:00