diff options
| author | Stefan Monnier | 2011-12-02 23:12:11 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-12-02 23:12:11 -0500 |
| commit | 5c3fe83faf7d7ee5e67a04984cc4cde55138c280 (patch) | |
| tree | 10663d033f9cc2c7d39cdeef8aaa10d670b0b478 /lisp | |
| parent | 63e94eb8188788a857c08890a2796fde1ede5ad3 (diff) | |
| download | emacs-5c3fe83faf7d7ee5e67a04984cc4cde55138c280.tar.gz emacs-5c3fe83faf7d7ee5e67a04984cc4cde55138c280.zip | |
* lisp/progmodes/prolog.el (prolog-find-value-by-system): Avoid error when
there's no inferior buffer.
(prolog-consult-compile): Don't use toggle-read-only.
Fixes: debbugs:10196
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/prolog.el | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4ab35890cae..33e20f297a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-12-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/prolog.el (prolog-find-value-by-system): Avoid error when | ||
| 4 | there's no inferior buffer (bug#10196). | ||
| 5 | (prolog-consult-compile): Don't use toggle-read-only. | ||
| 6 | |||
| 1 | 2011-12-02 Michael Albinus <michael.albinus@gmx.de> | 7 | 2011-12-02 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/tramp-sh.el (tramp-maybe-open-connection): Handle user | 9 | * net/tramp-sh.el (tramp-maybe-open-connection): Handle user |
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 24ca78ad4ef..5b229cc0c24 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el | |||
| @@ -868,8 +868,9 @@ VERSION is of the format (Major . Minor)" | |||
| 868 | (defun prolog-find-value-by-system (alist) | 868 | (defun prolog-find-value-by-system (alist) |
| 869 | "Get value from ALIST according to `prolog-system'." | 869 | "Get value from ALIST according to `prolog-system'." |
| 870 | (let ((system (or prolog-system | 870 | (let ((system (or prolog-system |
| 871 | (buffer-local-value 'prolog-system | 871 | (let ((infbuf (prolog-inferior-buffer 'dont-run))) |
| 872 | (prolog-inferior-buffer 'dont-run))))) | 872 | (when infbuf |
| 873 | (buffer-local-value 'prolog-system infbuf)))))) | ||
| 873 | (if (listp alist) | 874 | (if (listp alist) |
| 874 | (let (result | 875 | (let (result |
| 875 | id) | 876 | id) |
| @@ -1522,7 +1523,7 @@ This function must be called from the source code buffer." | |||
| 1522 | ;; Emacs-20). | 1523 | ;; Emacs-20). |
| 1523 | (set (make-local-variable 'compilation-parse-errors-function) | 1524 | (set (make-local-variable 'compilation-parse-errors-function) |
| 1524 | 'prolog-parse-sicstus-compilation-errors)) | 1525 | 'prolog-parse-sicstus-compilation-errors)) |
| 1525 | (toggle-read-only 0) | 1526 | (setq buffer-read-only nil) |
| 1526 | (insert command-string "\n")) | 1527 | (insert command-string "\n")) |
| 1527 | (save-selected-window | 1528 | (save-selected-window |
| 1528 | (pop-to-buffer buffer)) | 1529 | (pop-to-buffer buffer)) |