Commit graph

4050 commits

Author SHA1 Message Date
Glenn Morris
e7caef591f Move lisp/emacs-lisp/find-gc.el to admin/
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00118.html
2014-05-10 18:53:42 -07:00
Stefan Monnier
5d03fb436f * lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
(advice--member-p): If name is given, only compare the name.
(advice--remove-function): Don't stop at the first match.
(advice--normalize-place): New function.
(add-function, remove-function): Use it.
(advice--add-function): Pass the name, if any, to
advice--remove-function.
2014-05-10 16:07:01 -04:00
Stefan Monnier
5e87fcb1d7 * lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.
Add optional `seen' argument to detect and break infinite loops.

Fixes: debbugs:16994
2014-05-06 14:11:16 -04:00
Eli Zaretskii
c5d670f5ad Minor stylistic changes in find-gc.el.
lisp/emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs)
 (trace-unsafe, trace-use-tree): Make parentheses style be
 according to Emacs style.
2014-05-06 13:29:37 +03:00
Glenn Morris
0c4decaeb1 find-gc.el misc fixes
The whole file looks obsolete and/or broken.

* lisp/emacs-lisp/find-gc.el (find-gc-source-directory): Give it a value.
(find-gc-source-files): Update some names.
(trace-call-tree): Simplify and update.  Avoid predictable temp-file names.
2014-05-05 20:53:31 -07:00
Leo Liu
157e8cfdd8 * emacs-lisp/cl-macs.el (cl-deftype): Fix indentation. 2014-05-02 19:11:35 +08:00
Leo Liu
00104e5923 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Fix syntax for @.

Fixes: debbugs:17325
2014-04-24 08:55:18 +08:00
Daniel Colascione
543e3c63ac Require gv early to break eager macro-expansion cycles
* lisp/emacs-lisp/cl.el (gv): Require gv early to break eager
macro-expansion cycles.
2014-04-23 17:28:47 -07:00
Stefan Monnier
622eef687c * lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name. 2014-04-21 17:18:12 -04:00
Stefan Monnier
929c0500cc * lisp/emacs-lisp/package.el (package-built-in-p): Treat a min-version of
0 like nil.
2014-03-28 18:47:46 -04:00
Juanma Barranquero
b1c870c9e8 lisp/emacs-lisp/package-x.el: Follow-up to change in package.el.
(package--archive-contents-from-url): Use url-insert-file-contents;
package-handle-response no longer exists.
2014-03-27 01:20:50 +01:00
Juanma Barranquero
196716cf35 * lisp/emacs-lisp/package.el: Fix bug#16733 (again).
(url-http-parse-response, url-http-end-of-headers, url-recreate-url)
  (url-http-target-url): Remove unused declarations.
  (package-handle-response): Remove.
  (package--with-work-buffer): Use url-insert-file-contents and simplify.
  (package--download-one-archive): Use current-buffer instead of
  dynamic binding of `buffer'.
  (describe-package-1): Do not decode readme-string.

* lisp/url/url-handlers.el (url-http-parse-response): Add autoload.
  (url-insert-file-contents): Signal file-error in case of HTTP error.
2014-03-26 16:21:17 +01:00
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