aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2014-10-02 11:13:05 -0400
committerStefan Monnier2014-10-02 11:13:05 -0400
commitd7f413b893012eb5c9c93cd724008c2c1faae56f (patch)
tree4db7c6d5c96996c1f144165e03edb8c06fe0b7be /lisp
parent8eb61e5261cebf6a566b1138562953350080156b (diff)
parentef9bcf3b409648f36c5745e22d147f50a144524f (diff)
downloademacs-d7f413b893012eb5c9c93cd724008c2c1faae56f.tar.gz
emacs-d7f413b893012eb5c9c93cd724008c2c1faae56f.zip
Merge from emacs-24
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/emacs-lisp/package.el5
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/progmodes/python.el45
4 files changed, 43 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0d1ec7033b0..aa8ce36325d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12014-10-02 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/package.el (package-import-keyring):
4 Create gnupg directory private. (Bug#17625#155)
5
62014-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * progmodes/python.el (python-shell-completion-get-completions):
9 Use python-shell--prompt-calculated-input-regexp from the
10 process buffer (bug#18582).
11 Don't assume that `line' comes from the process buffer.
12
12014-10-02 Stefan Monnier <monnier@iro.umontreal.ca> 132014-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
2 14
3 * frame.el: Use lexical-binding (bug#18598). 15 * frame.el: Use lexical-binding (bug#18598).
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 4832673b95c..10944f81534 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -289,6 +289,8 @@ 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(defvar epg-gpg-program)
293
292(defcustom package-check-signature 294(defcustom package-check-signature
293 (if (progn (require 'epg-config) (executable-find epg-gpg-program)) 295 (if (progn (require 'epg-config) (executable-find epg-gpg-program))
294 'allow-unsigned) 296 'allow-unsigned)
@@ -1299,7 +1301,8 @@ similar to an entry in `package-alist'. Save the cached copy to
1299 (setq file (expand-file-name file)) 1301 (setq file (expand-file-name file))
1300 (let ((context (epg-make-context 'OpenPGP)) 1302 (let ((context (epg-make-context 'OpenPGP))
1301 (homedir (expand-file-name "gnupg" package-user-dir))) 1303 (homedir (expand-file-name "gnupg" package-user-dir)))
1302 (make-directory homedir t) 1304 (with-file-modes 448
1305 (make-directory homedir t))
1303 (epg-context-set-home-directory context homedir) 1306 (epg-context-set-home-directory context homedir)
1304 (message "Importing %s..." (file-name-nondirectory file)) 1307 (message "Importing %s..." (file-name-nondirectory file))
1305 (epg-import-keys-from-file context file) 1308 (epg-import-keys-from-file context file)
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7e6137226b5..be60d7777c4 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12014-10-02 Daiki Ueno <ueno@gnu.org>
2
3 * mml.el (mml-parse-1): Error out if unknown mode is specified in
4 <#secure> tag (bug#18513).
5
12014-09-29 Daiki Ueno <ueno@gnu.org> 62014-09-29 Daiki Ueno <ueno@gnu.org>
2 7
3 * mml.el (mml-parse-1): Error out if unknown mode is specified in 8 * mml.el (mml-parse-1): Error out if unknown mode is specified in
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 6c11a478942..f6e1021c86a 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2888,31 +2888,30 @@ the full statement in the case of imports."
2888 "Do completion at point using PROCESS for IMPORT or INPUT. 2888 "Do completion at point using PROCESS for IMPORT or INPUT.
2889When IMPORT is non-nil takes precedence over INPUT for 2889When IMPORT is non-nil takes precedence over INPUT for
2890completion." 2890completion."
2891 (let* ((prompt 2891 (with-current-buffer (process-buffer process)
2892 (with-current-buffer (process-buffer process) 2892 (let* ((prompt
2893 (let ((prompt-boundaries (python-util-comint-last-prompt))) 2893 (let ((prompt-boundaries (python-util-comint-last-prompt)))
2894 (buffer-substring-no-properties 2894 (buffer-substring-no-properties
2895 (car prompt-boundaries) (cdr prompt-boundaries))))) 2895 (car prompt-boundaries) (cdr prompt-boundaries))))
2896 (completion-code 2896 (completion-code
2897 ;; Check whether a prompt matches a pdb string, an import 2897 ;; Check whether a prompt matches a pdb string, an import
2898 ;; statement or just the standard prompt and use the 2898 ;; statement or just the standard prompt and use the
2899 ;; correct python-shell-completion-*-code string 2899 ;; correct python-shell-completion-*-code string
2900 (cond ((and (string-match 2900 (cond ((and (string-match
2901 (concat "^" python-shell-prompt-pdb-regexp) prompt)) 2901 (concat "^" python-shell-prompt-pdb-regexp) prompt))
2902 ;; Since there are no guarantees the user will remain 2902 ;; Since there are no guarantees the user will remain
2903 ;; in the same context where completion code was sent 2903 ;; in the same context where completion code was sent
2904 ;; (e.g. user steps into a function), safeguard 2904 ;; (e.g. user steps into a function), safeguard
2905 ;; resending completion setup continuously. 2905 ;; resending completion setup continuously.
2906 (concat python-shell-completion-setup-code 2906 (concat python-shell-completion-setup-code
2907 "\nprint (" python-shell-completion-string-code ")")) 2907 "\nprint (" python-shell-completion-string-code ")"))
2908 ((string-match 2908 ((string-match
2909 python-shell--prompt-calculated-input-regexp prompt) 2909 python-shell--prompt-calculated-input-regexp prompt)
2910 python-shell-completion-string-code) 2910 python-shell-completion-string-code)
2911 (t nil))) 2911 (t nil)))
2912 (subject (or import input))) 2912 (subject (or import input)))
2913 (and completion-code 2913 (and completion-code
2914 (> (length input) 0) 2914 (> (length input) 0)
2915 (with-current-buffer (process-buffer process)
2916 (let ((completions 2915 (let ((completions
2917 (python-util-strip-string 2916 (python-util-strip-string
2918 (python-shell-send-string-no-output 2917 (python-shell-send-string-no-output