diff options
| author | Lars Ingebrigtsen | 2019-10-09 03:11:15 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-09 03:11:15 +0200 |
| commit | 9365ff0527c27adb1c66e11ceee129f5e932a98d (patch) | |
| tree | fefb4b2d26e3a7068a5061a7d60436cc33172df7 | |
| parent | 11d3e309b3a93e864886e8b4a8246b8f6cb7934a (diff) | |
| download | emacs-9365ff0527c27adb1c66e11ceee129f5e932a98d.tar.gz emacs-9365ff0527c27adb1c66e11ceee129f5e932a98d.zip | |
Remove XEmacs compat code from prolog.el
* lisp/progmodes/prolog.el (prolog-mode-syntax-table)
(prolog-help-info, prolog-Info-follow-nearest-node)
(prolog-menu-help, prolog-edit-menu-runtime)
(prolog-inferior-menu-all): Remove XEmacs compat code.
| -rw-r--r-- | lisp/progmodes/prolog.el | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index 780eff2d8a0..4665500349a 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el | |||
| @@ -788,15 +788,8 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24." | |||
| 788 | 788 | ||
| 789 | (modify-syntax-entry ?% "<" table) | 789 | (modify-syntax-entry ?% "<" table) |
| 790 | (modify-syntax-entry ?\n ">" table) | 790 | (modify-syntax-entry ?\n ">" table) |
| 791 | (if (featurep 'xemacs) | 791 | (modify-syntax-entry ?* ". 23b" table) |
| 792 | (progn | 792 | (modify-syntax-entry ?/ ". 14" table) |
| 793 | (modify-syntax-entry ?* ". 67" table) | ||
| 794 | (modify-syntax-entry ?/ ". 58" table) | ||
| 795 | ) | ||
| 796 | ;; Emacs wants to see this it seems: | ||
| 797 | (modify-syntax-entry ?* ". 23b" table) | ||
| 798 | (modify-syntax-entry ?/ ". 14" table) | ||
| 799 | ) | ||
| 800 | table)) | 793 | table)) |
| 801 | 794 | ||
| 802 | (defconst prolog-atom-char-regexp | 795 | (defconst prolog-atom-char-regexp |
| @@ -2424,17 +2417,14 @@ In effect it sets the `fill-prefix' when inside comments and then calls | |||
| 2424 | ;; Single match | 2417 | ;; Single match |
| 2425 | (re-search-backward "[^ /]" nil t)) | 2418 | (re-search-backward "[^ /]" nil t)) |
| 2426 | 2419 | ||
| 2427 | ;; (Info-follow-nearest-node (point)) | 2420 | (Info-follow-nearest-node) |
| 2428 | (prolog-Info-follow-nearest-node) | ||
| 2429 | (re-search-forward (concat "^`" (regexp-quote predicate)) nil t) | 2421 | (re-search-forward (concat "^`" (regexp-quote predicate)) nil t) |
| 2430 | (beginning-of-line) | 2422 | (beginning-of-line) |
| 2431 | (recenter 0) | 2423 | (recenter 0) |
| 2432 | (pop-to-buffer buffer))) | 2424 | (pop-to-buffer buffer))) |
| 2433 | 2425 | ||
| 2434 | (defun prolog-Info-follow-nearest-node () | 2426 | (define-obsolete-function-alias 'prolog-Info-follow-nearest-node |
| 2435 | (if (featurep 'xemacs) | 2427 | #'Info-follow-nearest-node "27.1") |
| 2436 | (Info-follow-nearest-node (point)) | ||
| 2437 | (Info-follow-nearest-node))) | ||
| 2438 | 2428 | ||
| 2439 | (defun prolog-help-online (predicate) | 2429 | (defun prolog-help-online (predicate) |
| 2440 | (prolog-ensure-process) | 2430 | (prolog-ensure-process) |
| @@ -3337,11 +3327,7 @@ PREFIX is the prefix of the search regexp." | |||
| 3337 | prolog-menu-help (list prolog-mode-map prolog-inferior-mode-map) | 3327 | prolog-menu-help (list prolog-mode-map prolog-inferior-mode-map) |
| 3338 | "Help menu for the Prolog mode." | 3328 | "Help menu for the Prolog mode." |
| 3339 | ;; FIXME: Does it really deserve a whole menu to itself? | 3329 | ;; FIXME: Does it really deserve a whole menu to itself? |
| 3340 | `(,(if (featurep 'xemacs) "Help" | 3330 | `("Prolog-help" |
| 3341 | ;; Not sure it's worth the trouble. --Stef | ||
| 3342 | ;; (add-to-list 'menu-bar-final-items | ||
| 3343 | ;; (easy-menu-intern "Prolog-Help")) | ||
| 3344 | "Prolog-help") | ||
| 3345 | ["On predicate" prolog-help-on-predicate prolog-help-function-i] | 3331 | ["On predicate" prolog-help-on-predicate prolog-help-function-i] |
| 3346 | ["Apropos" prolog-help-apropos (eq prolog-system 'swi)] | 3332 | ["Apropos" prolog-help-apropos (eq prolog-system 'swi)] |
| 3347 | "---" | 3333 | "---" |
| @@ -3353,11 +3339,9 @@ PREFIX is the prefix of the search regexp." | |||
| 3353 | ;; FIXME: Don't use a whole menu for just "Run Mercury". --Stef | 3339 | ;; FIXME: Don't use a whole menu for just "Run Mercury". --Stef |
| 3354 | `("System" | 3340 | `("System" |
| 3355 | ;; Runtime menu name. | 3341 | ;; Runtime menu name. |
| 3356 | ,@(unless (featurep 'xemacs) | 3342 | :label (cond ((eq prolog-system 'eclipse) "ECLiPSe") |
| 3357 | '(:label (cond ((eq prolog-system 'eclipse) "ECLiPSe") | 3343 | ((eq prolog-system 'mercury) "Mercury") |
| 3358 | ((eq prolog-system 'mercury) "Mercury") | 3344 | (t "System")) |
| 3359 | (t "System")))) | ||
| 3360 | |||
| 3361 | ;; Consult items, NIL for mercury. | 3345 | ;; Consult items, NIL for mercury. |
| 3362 | ["Consult file" prolog-consult-file | 3346 | ["Consult file" prolog-consult-file |
| 3363 | :included (not (eq prolog-system 'mercury))] | 3347 | :included (not (eq prolog-system 'mercury))] |
| @@ -3369,8 +3353,7 @@ PREFIX is the prefix of the search regexp." | |||
| 3369 | :included (not (eq prolog-system 'mercury))] | 3353 | :included (not (eq prolog-system 'mercury))] |
| 3370 | 3354 | ||
| 3371 | ;; Compile items, NIL for everything but SICSTUS. | 3355 | ;; Compile items, NIL for everything but SICSTUS. |
| 3372 | ,(if (featurep 'xemacs) "---" | 3356 | ["---" nil :included (eq prolog-system 'sicstus)] |
| 3373 | ["---" nil :included (eq prolog-system 'sicstus)]) | ||
| 3374 | ["Compile file" prolog-compile-file | 3357 | ["Compile file" prolog-compile-file |
| 3375 | :included (eq prolog-system 'sicstus)] | 3358 | :included (eq prolog-system 'sicstus)] |
| 3376 | ["Compile buffer" prolog-compile-buffer | 3359 | ["Compile buffer" prolog-compile-buffer |
| @@ -3381,8 +3364,7 @@ PREFIX is the prefix of the search regexp." | |||
| 3381 | :included (eq prolog-system 'sicstus)] | 3364 | :included (eq prolog-system 'sicstus)] |
| 3382 | 3365 | ||
| 3383 | ;; Debug items, NIL for Mercury. | 3366 | ;; Debug items, NIL for Mercury. |
| 3384 | ,(if (featurep 'xemacs) "---" | 3367 | ["---" nil :included (not (eq prolog-system 'mercury))] |
| 3385 | ["---" nil :included (not (eq prolog-system 'mercury))]) | ||
| 3386 | ;; FIXME: Could we use toggle or radio buttons? --Stef | 3368 | ;; FIXME: Could we use toggle or radio buttons? --Stef |
| 3387 | ["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))] | 3369 | ["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))] |
| 3388 | ["Debug off" prolog-debug-off | 3370 | ["Debug off" prolog-debug-off |
| @@ -3465,14 +3447,11 @@ PREFIX is the prefix of the search regexp." | |||
| 3465 | "Menu for the inferior Prolog buffer." | 3447 | "Menu for the inferior Prolog buffer." |
| 3466 | `("Prolog" | 3448 | `("Prolog" |
| 3467 | ;; Runtime menu name. | 3449 | ;; Runtime menu name. |
| 3468 | ,@(unless (featurep 'xemacs) | 3450 | :label (cond ((eq prolog-system 'eclipse) "ECLiPSe") |
| 3469 | '(:label (cond ((eq prolog-system 'eclipse) "ECLiPSe") | 3451 | ((eq prolog-system 'mercury) "Mercury") |
| 3470 | ((eq prolog-system 'mercury) "Mercury") | 3452 | (t "Prolog")) |
| 3471 | (t "Prolog")))) | ||
| 3472 | |||
| 3473 | ;; Debug items, NIL for Mercury. | 3453 | ;; Debug items, NIL for Mercury. |
| 3474 | ,(if (featurep 'xemacs) "---" | 3454 | ["---" nil :included (not (eq prolog-system 'mercury))] |
| 3475 | ["---" nil :included (not (eq prolog-system 'mercury))]) | ||
| 3476 | ;; FIXME: Could we use toggle or radio buttons? --Stef | 3455 | ;; FIXME: Could we use toggle or radio buttons? --Stef |
| 3477 | ["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))] | 3456 | ["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))] |
| 3478 | ["Debug off" prolog-debug-off | 3457 | ["Debug off" prolog-debug-off |