aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-10-28 16:05:39 +0100
committerStefan Kangas2019-10-28 16:07:10 +0100
commit1f1ce5b3118abed0248f4a0bddd3f7538256dcac (patch)
treeb73ffb7c60f1bc59cc2f7e2607748fdbcc62226e
parentc515d4eeb2fe966923f0fef0c231945b6ad1df8f (diff)
downloademacs-1f1ce5b3118abed0248f4a0bddd3f7538256dcac.tar.gz
emacs-1f1ce5b3118abed0248f4a0bddd3f7538256dcac.zip
Remove more XEmacs compat code from CEDET
* 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.
-rw-r--r--lisp/cedet/mode-local.el24
-rw-r--r--lisp/cedet/semantic/idle.el3
-rw-r--r--lisp/cedet/semantic/imenu.el7
-rw-r--r--lisp/cedet/semantic/texi.el7
4 files changed, 10 insertions, 31 deletions
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el
index c4e5280df30..9477f1bdd51 100644
--- a/lisp/cedet/mode-local.el
+++ b/lisp/cedet/mode-local.el
@@ -877,23 +877,13 @@ META-NAME is a cons (OVERLOADABLE-SYMBOL . MAJOR-MODE)."
877 "Display mode local bindings active in BUFFER-OR-MODE. 877 "Display mode local bindings active in BUFFER-OR-MODE.
878Optional argument INTERACTIVE-P is non-nil if the calling command was 878Optional argument INTERACTIVE-P is non-nil if the calling command was
879invoked interactively." 879invoked interactively."
880 (if (fboundp 'with-displaying-help-buffer) 880 (when (fboundp 'help-setup-xref)
881 ;; XEmacs 881 (help-setup-xref
882 (with-displaying-help-buffer 882 (list 'mode-local-describe-bindings-1 buffer-or-mode)
883 #'(lambda () 883 interactive-p))
884 (with-current-buffer standard-output 884 (with-output-to-temp-buffer (help-buffer) ; "*Help*"
885 (mode-local-describe-bindings-2 buffer-or-mode) 885 (with-current-buffer standard-output
886 (when (fboundp 'frob-help-extents) 886 (mode-local-describe-bindings-2 buffer-or-mode))))
887 (goto-char (point-min))
888 (frob-help-extents standard-output)))))
889 ;; GNU Emacs
890 (when (fboundp 'help-setup-xref)
891 (help-setup-xref
892 (list 'mode-local-describe-bindings-1 buffer-or-mode)
893 interactive-p))
894 (with-output-to-temp-buffer (help-buffer) ; "*Help*"
895 (with-current-buffer standard-output
896 (mode-local-describe-bindings-2 buffer-or-mode)))))
897 887
898(defun describe-mode-local-bindings (buffer) 888(defun describe-mode-local-bindings (buffer)
899 "Display mode local bindings active in BUFFER." 889 "Display mode local bindings active in BUFFER."
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index 35ec930469f..78fd669ef61 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -703,8 +703,7 @@ by semanticdb as a time-saving measure."
703 '( 703 '(
704 font-lock-comment-face 704 font-lock-comment-face
705 font-lock-string-face 705 font-lock-string-face
706 font-lock-doc-string-face ; XEmacs. 706 font-lock-doc-face
707 font-lock-doc-face ; Emacs 21 and later.
708 ) 707 )
709 "List of font-lock faces that indicate a useless summary context. 708 "List of font-lock faces that indicate a useless summary context.
710Those are generally faces used to highlight comments. 709Those are generally faces used to highlight comments.
diff --git a/lisp/cedet/semantic/imenu.el b/lisp/cedet/semantic/imenu.el
index 7dcf75fefa6..81efffaa603 100644
--- a/lisp/cedet/semantic/imenu.el
+++ b/lisp/cedet/semantic/imenu.el
@@ -438,12 +438,7 @@ Optional argument PARENT is a tag parent of STREAM."
438 ;; Rebuild the imenu 438 ;; Rebuild the imenu
439 (imenu--cleanup) 439 (imenu--cleanup)
440 (setq imenu--index-alist nil) 440 (setq imenu--index-alist nil)
441 (funcall 441 (imenu-update-menubar)))))))
442 (if (fboundp 'imenu-menu-filter)
443 ;; XEmacs imenu
444 'imenu-menu-filter
445 ;; Emacs imenu
446 'imenu-update-menubar))))))))
447 442
448(defun semantic-imenu-semanticdb-hook () 443(defun semantic-imenu-semanticdb-hook ()
449 "Function to be called from `semanticdb-mode-hook'. 444 "Function to be called from `semanticdb-mode-hook'.
diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el
index 73f0e734f32..d0e6ad83b2a 100644
--- a/lisp/cedet/semantic/texi.el
+++ b/lisp/cedet/semantic/texi.el
@@ -389,12 +389,7 @@ Optional argument POINT is where to look for the environment."
389 389
390(defvar semantic-texi-command-completion-list 390(defvar semantic-texi-command-completion-list
391 (append (mapcar (lambda (a) (car a)) texinfo-section-list) 391 (append (mapcar (lambda (a) (car a)) texinfo-section-list)
392 (condition-case nil 392 texinfo-environments
393 texinfo-environments
394 (error
395 ;; XEmacs doesn't use the above. Split up its regexp
396 (split-string texinfo-environment-regexp "\\\\|\\|\\^@\\\\(\\|\\\\)")
397 ))
398 ;; Is there a better list somewhere? Here are few 393 ;; Is there a better list somewhere? Here are few
399 ;; of the top of my head. 394 ;; of the top of my head.
400 "anchor" "asis" 395 "anchor" "asis"