diff options
| author | Stefan Monnier | 2014-12-03 13:42:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-12-03 13:42:20 -0500 |
| commit | 41bb375cc71c70fbe9b405272abf0d5f345eee2a (patch) | |
| tree | 9e0cf058823558c2b170b161de6b9e9d398441ad /lisp/progmodes | |
| parent | e148a1eacaaa6d6e67db09188f66dab06937ae0d (diff) | |
| download | emacs-41bb375cc71c70fbe9b405272abf0d5f345eee2a.tar.gz emacs-41bb375cc71c70fbe9b405272abf0d5f345eee2a.zip | |
Fixes: debbugs:19250
* lisp/minibuffer.el (completion-table-dynamic): Add arg `switch-buffer'
and change default to stay in the minibuffer when called from
the minibuffer.
(lazy-completion-table): Use this new argument to preserve the
old behavior.
* lisp/progmodes/elisp-mode.el (elisp--local-variables): Don't burp on
incorrect lexical elements (bug#19250).
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 2be81a57ebe..ba70f903b4b 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -293,7 +293,7 @@ Blank lines separate paragraphs. Semicolons start comments. | |||
| 293 | (let* ((sexp (condition-case nil | 293 | (let* ((sexp (condition-case nil |
| 294 | (car (read-from-string | 294 | (car (read-from-string |
| 295 | (concat txt "elisp--witness--lisp" closer))) | 295 | (concat txt "elisp--witness--lisp" closer))) |
| 296 | (end-of-file nil))) | 296 | ((invalid-read-syntax end-of-file) nil))) |
| 297 | (macroexpand-advice (lambda (expander form &rest args) | 297 | (macroexpand-advice (lambda (expander form &rest args) |
| 298 | (condition-case nil | 298 | (condition-case nil |
| 299 | (apply expander form args) | 299 | (apply expander form args) |
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 25b081545a3..7d963635bc0 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el | |||
| @@ -45,13 +45,13 @@ | |||
| 45 | (defun completion-table-with-cache (fun &optional ignore-case) | 45 | (defun completion-table-with-cache (fun &optional ignore-case) |
| 46 | ;; See eg bug#11906. | 46 | ;; See eg bug#11906. |
| 47 | (let* (last-arg last-result | 47 | (let* (last-arg last-result |
| 48 | (new-fun | 48 | (new-fun |
| 49 | (lambda (arg) | 49 | (lambda (arg) |
| 50 | (if (and last-arg (string-prefix-p last-arg arg ignore-case)) | 50 | (if (and last-arg (string-prefix-p last-arg arg ignore-case)) |
| 51 | last-result | 51 | last-result |
| 52 | (prog1 | 52 | (prog1 |
| 53 | (setq last-result (funcall fun arg)) | 53 | (setq last-result (funcall fun arg)) |
| 54 | (setq last-arg arg)))))) | 54 | (setq last-arg arg)))))) |
| 55 | (completion-table-dynamic new-fun))))) | 55 | (completion-table-dynamic new-fun))))) |
| 56 | (eval-when-compile | 56 | (eval-when-compile |
| 57 | (unless (fboundp 'setq-local) | 57 | (unless (fboundp 'setq-local) |