(modify-syntax-entry ?% "<" table)
(modify-syntax-entry ?\n ">" table)
- (if (featurep 'xemacs)
- (progn
- (modify-syntax-entry ?* ". 67" table)
- (modify-syntax-entry ?/ ". 58" table)
- )
- ;; Emacs wants to see this it seems:
- (modify-syntax-entry ?* ". 23b" table)
- (modify-syntax-entry ?/ ". 14" table)
- )
+ (modify-syntax-entry ?* ". 23b" table)
+ (modify-syntax-entry ?/ ". 14" table)
table))
(defconst prolog-atom-char-regexp
;; Single match
(re-search-backward "[^ /]" nil t))
- ;; (Info-follow-nearest-node (point))
- (prolog-Info-follow-nearest-node)
+ (Info-follow-nearest-node)
(re-search-forward (concat "^`" (regexp-quote predicate)) nil t)
(beginning-of-line)
(recenter 0)
(pop-to-buffer buffer)))
-(defun prolog-Info-follow-nearest-node ()
- (if (featurep 'xemacs)
- (Info-follow-nearest-node (point))
- (Info-follow-nearest-node)))
+(define-obsolete-function-alias 'prolog-Info-follow-nearest-node
+ #'Info-follow-nearest-node "27.1")
(defun prolog-help-online (predicate)
(prolog-ensure-process)
prolog-menu-help (list prolog-mode-map prolog-inferior-mode-map)
"Help menu for the Prolog mode."
;; FIXME: Does it really deserve a whole menu to itself?
- `(,(if (featurep 'xemacs) "Help"
- ;; Not sure it's worth the trouble. --Stef
- ;; (add-to-list 'menu-bar-final-items
- ;; (easy-menu-intern "Prolog-Help"))
- "Prolog-help")
+ `("Prolog-help"
["On predicate" prolog-help-on-predicate prolog-help-function-i]
["Apropos" prolog-help-apropos (eq prolog-system 'swi)]
"---"
;; FIXME: Don't use a whole menu for just "Run Mercury". --Stef
`("System"
;; Runtime menu name.
- ,@(unless (featurep 'xemacs)
- '(:label (cond ((eq prolog-system 'eclipse) "ECLiPSe")
- ((eq prolog-system 'mercury) "Mercury")
- (t "System"))))
-
+ :label (cond ((eq prolog-system 'eclipse) "ECLiPSe")
+ ((eq prolog-system 'mercury) "Mercury")
+ (t "System"))
;; Consult items, NIL for mercury.
["Consult file" prolog-consult-file
:included (not (eq prolog-system 'mercury))]
:included (not (eq prolog-system 'mercury))]
;; Compile items, NIL for everything but SICSTUS.
- ,(if (featurep 'xemacs) "---"
- ["---" nil :included (eq prolog-system 'sicstus)])
+ ["---" nil :included (eq prolog-system 'sicstus)]
["Compile file" prolog-compile-file
:included (eq prolog-system 'sicstus)]
["Compile buffer" prolog-compile-buffer
:included (eq prolog-system 'sicstus)]
;; Debug items, NIL for Mercury.
- ,(if (featurep 'xemacs) "---"
- ["---" nil :included (not (eq prolog-system 'mercury))])
+ ["---" nil :included (not (eq prolog-system 'mercury))]
;; FIXME: Could we use toggle or radio buttons? --Stef
["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))]
["Debug off" prolog-debug-off
"Menu for the inferior Prolog buffer."
`("Prolog"
;; Runtime menu name.
- ,@(unless (featurep 'xemacs)
- '(:label (cond ((eq prolog-system 'eclipse) "ECLiPSe")
- ((eq prolog-system 'mercury) "Mercury")
- (t "Prolog"))))
-
+ :label (cond ((eq prolog-system 'eclipse) "ECLiPSe")
+ ((eq prolog-system 'mercury) "Mercury")
+ (t "Prolog"))
;; Debug items, NIL for Mercury.
- ,(if (featurep 'xemacs) "---"
- ["---" nil :included (not (eq prolog-system 'mercury))])
+ ["---" nil :included (not (eq prolog-system 'mercury))]
;; FIXME: Could we use toggle or radio buttons? --Stef
["Debug" prolog-debug-on :included (not (eq prolog-system 'mercury))]
["Debug off" prolog-debug-off