diff options
| author | Stefan Monnier | 2014-09-30 19:19:31 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-09-30 19:19:31 -0400 |
| commit | 07bec0fc67ee0b26685f0ec7f28d9b73f67bf3de (patch) | |
| tree | 222adf06960f86aa8b2f560217d39c9fe39d3996 /lisp | |
| parent | 6aed001ad31d41f028d77e66e597b7b3ab4e31ae (diff) | |
| parent | d3b7a90bc2ad20192d1afd23eb1aa6a18ceda569 (diff) | |
| download | emacs-07bec0fc67ee0b26685f0ec7f28d9b73f67bf3de.tar.gz emacs-07bec0fc67ee0b26685f0ec7f28d9b73f67bf3de.zip | |
Merge from emacs-24
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 16 | ||||
| -rw-r--r-- | lisp/erc/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/erc/erc-track.el | 79 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
6 files changed, 76 insertions, 51 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 745346a903a..e9db9891714 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-09-30 Leonardo Nobrega <leonobr@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/python.el (python-fill-paren): Don't inf-loop at EOB | ||
| 4 | (bug#18462). | ||
| 5 | |||
| 6 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 7 | |||
| 8 | * emacs-lisp/package.el (package-check-signature): Default to nil if | ||
| 9 | GPG is not available. | ||
| 10 | (package-refresh-contents): Don't mess with the keyring if we won't | ||
| 11 | check the signatures anyway. | ||
| 12 | |||
| 1 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | 13 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 14 | ||
| 3 | * ses.el (ses--row, ses--col): New dyn-scoped vars, to replace row&col. | 15 | * ses.el (ses--row, ses--col): New dyn-scoped vars, to replace row&col. |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 1649ee0ea1a..4832673b95c 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -289,7 +289,9 @@ contrast, `package-user-dir' contains packages for personal use." | |||
| 289 | :group 'package | 289 | :group 'package |
| 290 | :version "24.1") | 290 | :version "24.1") |
| 291 | 291 | ||
| 292 | (defcustom package-check-signature 'allow-unsigned | 292 | (defcustom package-check-signature |
| 293 | (if (progn (require 'epg-config) (executable-find epg-gpg-program)) | ||
| 294 | 'allow-unsigned) | ||
| 293 | "Non-nil means to check package signatures when installing. | 295 | "Non-nil means to check package signatures when installing. |
| 294 | The value `allow-unsigned' means to still install a package even if | 296 | The value `allow-unsigned' means to still install a package even if |
| 295 | it is unsigned. | 297 | it is unsigned. |
| @@ -1314,12 +1316,12 @@ makes them available for download." | |||
| 1314 | (make-directory package-user-dir t)) | 1316 | (make-directory package-user-dir t)) |
| 1315 | (let ((default-keyring (expand-file-name "package-keyring.gpg" | 1317 | (let ((default-keyring (expand-file-name "package-keyring.gpg" |
| 1316 | data-directory))) | 1318 | data-directory))) |
| 1317 | (if (file-exists-p default-keyring) | 1319 | (when (and package-check-signature (file-exists-p default-keyring)) |
| 1318 | (condition-case-unless-debug error | 1320 | (condition-case-unless-debug error |
| 1319 | (progn | 1321 | (progn |
| 1320 | (epg-check-configuration (epg-configuration)) | 1322 | (epg-check-configuration (epg-configuration)) |
| 1321 | (package-import-keyring default-keyring)) | 1323 | (package-import-keyring default-keyring)) |
| 1322 | (error (message "Cannot import default keyring: %S" (cdr error)))))) | 1324 | (error (message "Cannot import default keyring: %S" (cdr error)))))) |
| 1323 | (dolist (archive package-archives) | 1325 | (dolist (archive package-archives) |
| 1324 | (condition-case-unless-debug nil | 1326 | (condition-case-unless-debug nil |
| 1325 | (package--download-one-archive archive "archive-contents") | 1327 | (package--download-one-archive archive "archive-contents") |
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index b5dd3f2f359..1ea79dbbc1a 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * erc-track.el (erc-modified-channels-display): Update all mode lines | ||
| 4 | if needed (bug#18510). Remove call to erc-modified-channels-object | ||
| 5 | where we ignored the return value. | ||
| 6 | (erc-modified-channels-update): Don't force-mode-line-update here | ||
| 7 | any more. | ||
| 8 | |||
| 1 | 2014-09-26 Kelvin White <kwhite@gnu.org> | 9 | 2014-09-26 Kelvin White <kwhite@gnu.org> |
| 2 | 10 | ||
| 3 | * erc.el (erc-format-nick): Fix code regression - Bug #18551 | 11 | * erc.el (erc-format-nick): Fix code regression - Bug #18551 |
| @@ -12,7 +20,7 @@ | |||
| 12 | (erc-cmd-SV, erc-ctcp-query-VERSION, erc-version, erc-version-string): | 20 | (erc-cmd-SV, erc-ctcp-query-VERSION, erc-version, erc-version-string): |
| 13 | Change version string. | 21 | Change version string. |
| 14 | 22 | ||
| 15 | 2014-08-13 Kelvin White <kwhite@gnu.org> | 23 | 2014-08-13 Kelvin White <kwhite@gnu.org> |
| 16 | 24 | ||
| 17 | * erc.el (erc-send-input): Disable display commands in current buffer | 25 | * erc.el (erc-send-input): Disable display commands in current buffer |
| 18 | (erc-format-target-and/or-network): Fix cases when buffer name is set | 26 | (erc-format-target-and/or-network): Fix cases when buffer name is set |
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index 3f7b6a7b501..706cce2fefe 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el | |||
| @@ -767,8 +767,7 @@ ARGS are ignored." | |||
| 767 | (erc-modified-channels-remove-buffer buffer)))) | 767 | (erc-modified-channels-remove-buffer buffer)))) |
| 768 | erc-modified-channels-alist) | 768 | erc-modified-channels-alist) |
| 769 | (when removed-channel | 769 | (when removed-channel |
| 770 | (erc-modified-channels-display) | 770 | (erc-modified-channels-display))) |
| 771 | (force-mode-line-update t))) | ||
| 772 | (remove-hook 'post-command-hook 'erc-modified-channels-update))) | 771 | (remove-hook 'post-command-hook 'erc-modified-channels-update))) |
| 773 | 772 | ||
| 774 | (defvar erc-track-mouse-face (if (featurep 'xemacs) | 773 | (defvar erc-track-mouse-face (if (featurep 'xemacs) |
| @@ -825,43 +824,45 @@ Use `erc-make-mode-line-buffer-name' to create buttons." | |||
| 825 | ((eq 'importance erc-track-switch-direction) | 824 | ((eq 'importance erc-track-switch-direction) |
| 826 | (erc-track-sort-by-importance))) | 825 | (erc-track-sort-by-importance))) |
| 827 | (run-hooks 'erc-track-list-changed-hook) | 826 | (run-hooks 'erc-track-list-changed-hook) |
| 828 | (unless (eq erc-track-position-in-mode-line nil) | 827 | (when erc-track-position-in-mode-line |
| 829 | (if (null erc-modified-channels-alist) | 828 | (let* ((oldobject erc-modified-channels-object) |
| 830 | (setq erc-modified-channels-object (erc-modified-channels-object nil)) | 829 | (strings |
| 831 | ;; erc-modified-channels-alist contains all the data we need. To | 830 | (when erc-modified-channels-alist |
| 832 | ;; better understand what is going on, we split things up into | 831 | ;; erc-modified-channels-alist contains all the data we need. To |
| 833 | ;; four lists: BUFFERS, COUNTS, SHORT-NAMES, and FACES. These | 832 | ;; better understand what is going on, we split things up into |
| 834 | ;; four lists we use to create a new | 833 | ;; four lists: BUFFERS, COUNTS, SHORT-NAMES, and FACES. These |
| 835 | ;; `erc-modified-channels-object' using | 834 | ;; four lists we use to create a new |
| 836 | ;; `erc-make-mode-line-buffer-name'. | 835 | ;; `erc-modified-channels-object' using |
| 837 | (let* ((buffers (mapcar 'car erc-modified-channels-alist)) | 836 | ;; `erc-make-mode-line-buffer-name'. |
| 838 | (counts (mapcar 'cadr erc-modified-channels-alist)) | 837 | (let* ((buffers (mapcar 'car erc-modified-channels-alist)) |
| 839 | (faces (mapcar 'cddr erc-modified-channels-alist)) | 838 | (counts (mapcar 'cadr erc-modified-channels-alist)) |
| 840 | (long-names (mapcar #'(lambda (buf) | 839 | (faces (mapcar 'cddr erc-modified-channels-alist)) |
| 841 | (or (buffer-name buf) | 840 | (long-names (mapcar #'(lambda (buf) |
| 842 | "")) | 841 | (or (buffer-name buf) |
| 843 | buffers)) | 842 | "")) |
| 844 | (short-names (if (functionp erc-track-shorten-function) | 843 | buffers)) |
| 845 | (funcall erc-track-shorten-function | 844 | (short-names (if (functionp erc-track-shorten-function) |
| 846 | long-names) | 845 | (funcall erc-track-shorten-function |
| 847 | long-names)) | 846 | long-names) |
| 848 | strings) | 847 | long-names)) |
| 849 | (while buffers | 848 | strings) |
| 850 | (when (car short-names) | 849 | (while buffers |
| 851 | (setq strings (cons (erc-make-mode-line-buffer-name | 850 | (when (car short-names) |
| 852 | (car short-names) | 851 | (setq strings (cons (erc-make-mode-line-buffer-name |
| 853 | (car buffers) | 852 | (car short-names) |
| 854 | (car faces) | 853 | (car buffers) |
| 855 | (car counts)) | 854 | (car faces) |
| 856 | strings))) | 855 | (car counts)) |
| 857 | (setq short-names (cdr short-names) | 856 | strings))) |
| 858 | buffers (cdr buffers) | 857 | (setq short-names (cdr short-names) |
| 859 | counts (cdr counts) | 858 | buffers (cdr buffers) |
| 860 | faces (cdr faces))) | 859 | counts (cdr counts) |
| 861 | (when (featurep 'xemacs) | 860 | faces (cdr faces))) |
| 862 | (erc-modified-channels-object nil)) | 861 | strings))) |
| 863 | (setq erc-modified-channels-object | 862 | (newobject (erc-modified-channels-object strings))) |
| 864 | (erc-modified-channels-object strings)))))) | 863 | (unless (equal oldobject newobject) |
| 864 | (setq erc-modified-channels-object newobject) | ||
| 865 | (force-mode-line-update t))))) | ||
| 865 | 866 | ||
| 866 | (defun erc-modified-channels-remove-buffer (buffer) | 867 | (defun erc-modified-channels-remove-buffer (buffer) |
| 867 | "Remove BUFFER from `erc-modified-channels-alist'." | 868 | "Remove BUFFER from `erc-modified-channels-alist'." |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 6e482280a9f..8008f07c700 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -9,8 +9,8 @@ | |||
| 9 | * mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a | 9 | * mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a |
| 10 | string before trying to use it (closes SF #474). | 10 | string before trying to use it (closes SF #474). |
| 11 | (mh-bare-components): New function to create a temporary initial | 11 | (mh-bare-components): New function to create a temporary initial |
| 12 | components file; replaces mh-find-components. Improve the temp | 12 | components file; replaces mh-find-components. Improve the temp |
| 13 | folder and file names as per a suggestion from Bill Wohler. Also | 13 | folder and file names as per a suggestion from Bill Wohler. Also |
| 14 | address XEmacs compatibility issues: use mm-make-temp-file instead | 14 | address XEmacs compatibility issues: use mm-make-temp-file instead |
| 15 | of make-temp-file, and only pass one argument to delete-directory. | 15 | of make-temp-file, and only pass one argument to delete-directory. |
| 16 | (mh-edit-again, mh-send-sub): Use mh-bare-components instead of | 16 | (mh-edit-again, mh-send-sub): Use mh-bare-components instead of |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e617e2932d0..6c11a478942 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -3300,7 +3300,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'." | |||
| 3300 | (end-of-line) | 3300 | (end-of-line) |
| 3301 | (when (not (python-syntax-context 'paren)) | 3301 | (when (not (python-syntax-context 'paren)) |
| 3302 | (skip-syntax-backward "^)"))) | 3302 | (skip-syntax-backward "^)"))) |
| 3303 | (while (python-syntax-context 'paren) | 3303 | (while (and (python-syntax-context 'paren) |
| 3304 | (not (eobp))) | ||
| 3304 | (goto-char (1+ (point-marker)))) | 3305 | (goto-char (1+ (point-marker)))) |
| 3305 | (point-marker))) | 3306 | (point-marker))) |
| 3306 | (let ((paragraph-start "\f\\|[ \t]*$") | 3307 | (let ((paragraph-start "\f\\|[ \t]*$") |
| @@ -3311,7 +3312,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'." | |||
| 3311 | (while (not (eobp)) | 3312 | (while (not (eobp)) |
| 3312 | (forward-line 1) | 3313 | (forward-line 1) |
| 3313 | (python-indent-line) | 3314 | (python-indent-line) |
| 3314 | (goto-char (line-end-position)))) t) | 3315 | (goto-char (line-end-position)))) |
| 3316 | t) | ||
| 3315 | 3317 | ||
| 3316 | 3318 | ||
| 3317 | ;;; Skeletons | 3319 | ;;; Skeletons |