]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove more XEmacs compat code from CEDET
authorStefan Kangas <stefankangas@gmail.com>
Mon, 28 Oct 2019 15:05:39 +0000 (16:05 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 28 Oct 2019 15:07:10 +0000 (16:07 +0100)
* lisp/cedet/mode-local.el (mode-local-describe-bindings-1):
* lisp/cedet/semantic/idle.el (semantic-idle-summary-out-of-context-faces):
* lisp/cedet/semantic/imenu.el (semantic-imenu-rebuild-directory-indexes):
* lisp/cedet/semantic/texi.el (semantic-texi-command-completion-list):
Remove XEmacs compat code.

lisp/cedet/mode-local.el
lisp/cedet/semantic/idle.el
lisp/cedet/semantic/imenu.el
lisp/cedet/semantic/texi.el

index c4e5280df300c065a7dd34fad6bd06684f40591e..9477f1bdd5193e6511eaf60d469e86175b1db5f7 100644 (file)
@@ -877,23 +877,13 @@ META-NAME is a cons (OVERLOADABLE-SYMBOL . MAJOR-MODE)."
   "Display mode local bindings active in BUFFER-OR-MODE.
 Optional argument INTERACTIVE-P is non-nil if the calling command was
 invoked interactively."
-  (if (fboundp 'with-displaying-help-buffer)
-      ;; XEmacs
-      (with-displaying-help-buffer
-       #'(lambda ()
-           (with-current-buffer standard-output
-             (mode-local-describe-bindings-2 buffer-or-mode)
-             (when (fboundp 'frob-help-extents)
-               (goto-char (point-min))
-               (frob-help-extents standard-output)))))
-    ;; GNU Emacs
-    (when (fboundp 'help-setup-xref)
-      (help-setup-xref
-       (list 'mode-local-describe-bindings-1 buffer-or-mode)
-       interactive-p))
-    (with-output-to-temp-buffer (help-buffer) ; "*Help*"
-      (with-current-buffer standard-output
-        (mode-local-describe-bindings-2 buffer-or-mode)))))
+  (when (fboundp 'help-setup-xref)
+    (help-setup-xref
+     (list 'mode-local-describe-bindings-1 buffer-or-mode)
+     interactive-p))
+  (with-output-to-temp-buffer (help-buffer) ; "*Help*"
+    (with-current-buffer standard-output
+      (mode-local-describe-bindings-2 buffer-or-mode))))
 
 (defun describe-mode-local-bindings (buffer)
   "Display mode local bindings active in BUFFER."
index 35ec930469ff946836e15c182e4a5979741f39cf..78fd669ef61352b6fff89eb6488b2f1ab1c53e27 100644 (file)
@@ -703,8 +703,7 @@ by semanticdb as a time-saving measure."
   '(
     font-lock-comment-face
     font-lock-string-face
-    font-lock-doc-string-face           ; XEmacs.
-    font-lock-doc-face                  ; Emacs 21 and later.
+    font-lock-doc-face
     )
   "List of font-lock faces that indicate a useless summary context.
 Those are generally faces used to highlight comments.
index 7dcf75fefa6f427243e1cbe4fb995adb8e8b746a..81efffaa603f6fc0d3b56de178902b62f5ef6aeb 100644 (file)
@@ -438,12 +438,7 @@ Optional argument PARENT is a tag parent of STREAM."
               ;; Rebuild the imenu
               (imenu--cleanup)
               (setq imenu--index-alist nil)
-              (funcall
-               (if (fboundp 'imenu-menu-filter)
-                   ;; XEmacs imenu
-                   'imenu-menu-filter
-                 ;; Emacs imenu
-                 'imenu-update-menubar))))))))
+              (imenu-update-menubar)))))))
 
 (defun semantic-imenu-semanticdb-hook ()
   "Function to be called from `semanticdb-mode-hook'.
index 73f0e734f3297b1eaacc3625cc863752e3d28589..d0e6ad83b2a8e12f6c9340c081a5a8e6f38acacc 100644 (file)
@@ -389,12 +389,7 @@ Optional argument POINT is where to look for the environment."
 
 (defvar semantic-texi-command-completion-list
   (append (mapcar (lambda (a) (car a)) texinfo-section-list)
-         (condition-case nil
-             texinfo-environments
-           (error
-            ;; XEmacs doesn't use the above.  Split up its regexp
-            (split-string texinfo-environment-regexp "\\\\|\\|\\^@\\\\(\\|\\\\)")
-            ))
+         texinfo-environments
          ;; Is there a better list somewhere?  Here are few
          ;; of the top of my head.
          "anchor" "asis"