summaryrefslogtreecommitdiff
path: root/lisp/progmodes/prolog.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-07-25 04:24:00 -0400
committerGlenn Morris <rgm@gnu.org>2014-07-25 04:24:00 -0400
commit25aa0da588f2afb629e6b42612ccc8925da41a46 (patch)
treef9447339ae143a014d13535e07fee73a7836893b /lisp/progmodes/prolog.el
parent37a21453db134292b99291226d541df838e7d711 (diff)
downloademacs-25aa0da588f2afb629e6b42612ccc8925da41a46.tar.gz
prolog.el: Fix for missing `switch-to-prolog'
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00228.html * lisp/progmodes/prolog.el (prolog-mode-keybindings-edit): Replace missing `switch-to-prolog' with `run-prolog'. (switch-to-prolog): Define as (obsolete) alias, as in 23.4.
Diffstat (limited to 'lisp/progmodes/prolog.el')
-rw-r--r--lisp/progmodes/prolog.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index bcac59a3ade..07d88b3f0fb 100644
--- a/lisp/progmodes/prolog.el
+++ b/lisp/progmodes/prolog.el
@@ -1079,7 +1079,7 @@ VERSION is of the format (Major . Minor)"
;; Inherited from the old prolog.el.
(define-key map "\e\C-x" 'prolog-consult-region)
(define-key map "\C-c\C-l" 'prolog-consult-file)
- (define-key map "\C-c\C-z" 'switch-to-prolog))
+ (define-key map "\C-c\C-z" 'run-prolog))
(defun prolog-mode-keybindings-inferior (_map)
"Define keybindings for inferior Prolog mode in MAP."
@@ -1240,6 +1240,8 @@ To find out what version of Prolog mode you are running, enter
((string-match "\\`[rf] *[0-9]*\\'" str) nil) ;r(edo) or f(ail)
(t t)))
+;; This statement was missing in Emacs 24.1, 24.2, 24.3.
+(define-obsolete-function-alias 'switch-to-prolog 'run-prolog "24.1")
;;;###autoload
(defun run-prolog (arg)
"Run an inferior Prolog process, input and output via buffer *prolog*.