Commit graph

4119 commits

Author SHA1 Message Date
Glenn Morris
90de50e270 Merge from emacs-24; up to 2014-06-03T06:51:18Z!eliz@gnu.org 2014-06-14 17:06:30 -07:00
Stefan Monnier
bf26b463ea * lisp/emacs-lisp/smie.el (smie-next-sexp): Fix up "other-end" info when
bumping forward into a closing paren.

Fixes: debbugs:17761
2014-06-13 11:31:17 -04:00
Glenn Morris
36cf8493af Merge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu 2014-06-07 17:35:27 -07:00
Mario Lang
4a81602043 * emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.
2014-06-06 02:39:22 +02:00
Leo Liu
d4e355b45d * emacs-lisp/cl-macs.el (cl-macrolet): Simplify last change. 2014-06-06 07:08:59 +08:00
Leo Liu
14781f7f44 * emacs-lisp/cl-macs.el (cl-macrolet): Avoid excessive progn's. 2014-06-06 01:08:18 +08:00
Glenn Morris
879f52734c * lisp/emacs-lisp/package.el: Comment update 2014-06-05 00:08:42 -07:00
Glenn Morris
e1b3f35f93 Some documentation for signing of packages
* doc/emacs/package.texi (Package Menu, Package Installation):
Mention signed packages.

* doc/lispref/package.texi (Package Archives): Mention signing packages.

* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Doc fixes.

* etc/NEWS: Related edits.
2014-06-04 23:15:44 -07:00
Glenn Morris
910dc8d312 * lisp/emacs-lisp/package.el (package-pinned-packages): Doc fix.
* etc/NEWS: Related edit.
2014-06-02 21:41:20 -07:00
Glenn Morris
953e106ac8 Merge from emacs-24; up to 2014-05-29T17:16:00Z!dmantipov@yandex.ru 2014-06-01 17:18:22 -07:00
Leo Liu
e41682ae9c * emacs-lisp/gv.el (window-buffer, window-display-table)
(window-dedicated-p, window-hscroll, window-point, window-start):
Fix gv-expander.

Fixes: debbugs:17630
2014-05-31 23:43:43 +08:00
Glenn Morris
ff66db7950 Fix typo in previous 2014-05-29 22:15:29 -07:00
Glenn Morris
ab84733c35 package.el: Fix some version tags
* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Fix :version.
2014-05-29 22:08:10 -07:00
Thien-Thi Nguyen
c63982dd7d * lisp/emacs-lisp/package.el (package-generate-autoloads):
Inhibit backup files.
2014-05-28 11:58:47 +02:00
Stefan Monnier
4c539a7b38 * lisp/subr.el (zerop): Move from C. Add compiler-macro.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-zerop): Remove.
* src/data.c (Fzerop): Move to Elisp.
(syms_of_data): Don't defsubr it.
* src/keyboard.c (echo_keystrokes_p): New function.
(read_char, record_menu_key, read_key_sequence): Use it.

Fixes: debbugs:17475
2014-05-27 20:50:44 -04:00
Stefan Monnier
53bc1e2982 * lisp/emacs-lisp/byte-opt.el (byte-optimize-binary-predicate): Don't assume
there can't be more than 2 arguments.

Fixes: debbugs:17584
2014-05-27 10:56:03 -04:00
Glenn Morris
cae9b33def Auto-commit of loaddefs files. 2014-05-26 06:21:18 -04:00
Glenn Morris
015936fba1 Merge from emacs-24; up to 2014-05-26T10:21:18Z!rgm@gnu.org 2014-05-25 19:28:09 -07:00
Thien-Thi Nguyen
770a6a917f Arrange to never byte-compile the generated -pkg.el file.
* lisp/emacs-lisp/package.el (package-generate-description-file):
Output first-line comment to set buffer-local var `no-byte-compile'.
Suggested by Dmitry Gutov:
<http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00401.html>.
2014-05-25 18:53:28 +02:00
Thien-Thi Nguyen
e50a0b6e9d Fix bug: Properly quote args to generated -pkg.el `define-package'.
* lisp/emacs-lisp/package.el (package-generate-description-file):
Inline `package--alist-to-plist'; rewrite to selectively
quote alist values that are not self-quoting.
(package--alist-to-plist): Delete func.
2014-05-25 18:32:08 +02:00
Daniel Colascione
8bb17f6471 Unbreak the build
* lisp/emacs-lisp/nadvice.el (defun): Write in eval-and-compile to avoid
breaking the build.
2014-05-24 12:51:52 -07:00
Stefan Monnier
15ad4013c4 * lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.
(advice-function-member-p): Tell it to check both names and functions.
(advice--add-function): Adjust call accordingly.

Fixes: debbugs:17531
2014-05-23 12:17:14 -04:00
Stefan Monnier
e4829cb8d7 * lisp/minibuffer.el (completion--sreverse): Remove.
(completion--common-suffix): Use `reverse' instead.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-group): Use `reverse' on strings.
2014-05-23 11:54:44 -04:00
Dmitry Gutov
b0df8b9535 Replace uses of save-buffer' with write-region'
* lisp/emacs-lisp/package.el (package--download-one-archive): Use
`write-region' instead of `save-buffer' to avoid running various
hooks. 
(describe-package-1): Same.  Insert newline at the end of the
buffer if appropriate.

Fixes: debbugs:17155
2014-05-21 05:14:38 +03:00
Leo Liu
8ea51e4f08 * emacs-lisp/cl-lib.el (cl-endp): Fix last change. 2014-05-21 08:41:21 +08:00
Stefan Monnier
7b952d6142 * lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.
Fixes: debbugs:17274
2014-05-20 14:55:41 -04:00
Leo Liu
427de5355f * emacs-lisp/cl-lib.el (cl-endp): Conform to CL's semantics. 2014-05-20 00:08:40 +08:00
Stefan Monnier
c42ebc983b * lisp/emacs-lisp/timer.el (timer-event-handler): Fix last change.
Fixes: debbugs:17392
2014-05-18 09:17:10 -04:00
Stefan Monnier
08a2434e2f * lisp/emacs-lisp/timer.el (timer-event-handler): Don't run if canceled.
Fixes: debbugs:17392
2014-05-18 08:58:30 -04:00
David Engster
2aa03011f7 Auto-commit of loaddefs files. 2014-05-14 22:45:05 +02:00
Nicolas Richard
ec264fbb7c Deal with EIEIO methods without doc strings (Bug#17490).
* emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with
methods which do not have a doc string.  (Bug#17490)
2014-05-14 22:41:53 +02:00
Glenn Morris
d63d883a97 Add with-file-modes macro, and use it
* lisp/subr.el (with-file-modes): New macro.

* lisp/printing.el (pr-save-file-modes):
* lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Add with-file-modes.

* lisp/doc-view.el (doc-view-make-safe-dir):
* lisp/epg.el (epg--start):
* lisp/files.el (locate-user-emacs-file, make-temp-file)
(backup-buffer-copy, move-file-to-trash):
* printing.el (pr-despool-print, pr-call-process, pr-text2ps):
* eshell/esh-util.el (eshell-with-private-file-modes)
(eshell-make-private-directory):
* lisp/net/browse-url.el (browse-url-mosaic):
* lisp/obsolete/mailpost.el (post-mail-send-it):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
* lisp/url/url-util.el (url-make-private-file):
Use with-file-modes.

* doc/lispref/files.texi (Changing Files): Mention with-file-modes.

* etc/NEWS: Mention this.
2014-05-14 10:15:15 -07:00
Glenn Morris
bbbabffe06 Merge from emacs-24; up to 2014-05-12T06:15:47Z!rgm@gnu.org 2014-05-11 23:59:30 -07:00
Stefan Monnier
97100b4379 * lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
into autoloading just because of a silly indirection.
2014-05-12 01:25:34 -04:00
Stefan Monnier
4eb436826b * lisp/emacs-lisp/lisp-mode.el (preceding-sexp): Exclude leading "," which
are a hindrance for C-x C-e.
2014-05-10 23:48:15 -04:00
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
Glenn Morris
fb3f83f5fd Merge from emacs-24; up to 2014-05-08T03:34:20Z!rgm@gnu.org 2014-05-07 20:41:21 -07: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
Paul Eggert
3e9fa60a5c Merge from emacs-24; up to 2014-05-04T21:18:30Z!eggert@cs.ucla.edu 2014-05-04 12:37:56 -07:00
Leo Liu
157e8cfdd8 * emacs-lisp/cl-macs.el (cl-deftype): Fix indentation. 2014-05-02 19:11:35 +08:00
Stefan Monnier
17a873c585 * lisp/emacs-lisp/lisp-mode.el (lisp--match-hidden-arg): Only highlight past
the last consecutive closing paren.

Fixes: debbugs:17345
2014-05-01 12:14:03 -04:00
Juanma Barranquero
dff4a9f6a4 Merge from emacs-24; up to 2014-04-25T10:35:01Z!michael.albinus@gmx.de 2014-04-25 18:11:07 +02: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
ddc13efd70 * lisp/emacs-lisp/cl-macs.el (cl--loop-let): Fix last merge. 2014-04-22 21:40:35 -04:00
Daniel Colascione
1b0f10d2df 2014-04-22 Daniel Colascione <dancol@dancol.org>
* emacs-lisp/byte-run.el (function-put): Unbreak build: don't
	use defun to define `function-put'.
2014-04-22 14:46:19 -07:00
Paul Eggert
42e910349d Merge from emacs-24; up to 2014-04-22T20:19:17Z!eggert@cs.ucla.edu 2014-04-22 14:32:51 -07:00