]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some ancient Emacs compat code
authorStefan Kangas <stefan@marxist.se>
Tue, 17 May 2022 22:27:52 +0000 (00:27 +0200)
committerStefan Kangas <stefan@marxist.se>
Tue, 17 May 2022 22:27:52 +0000 (00:27 +0200)
* lisp/cedet/mode-local.el (mode-local-describe-bindings-1):
* lisp/cedet/semantic/senator.el (senator-copy-tag-to-register):
* lisp/gnus/nnrss.el (nnrss-opml-export):
* lisp/net/newst-backend.el (newsticker-opml-export):
* lisp/textmodes/reftex.el (reftex-mode-menu):
* lisp/woman.el (woman-menu): Remove some ancient Emacs compat code.

lisp/cedet/mode-local.el
lisp/cedet/semantic/senator.el
lisp/gnus/nnrss.el
lisp/net/newst-backend.el
lisp/textmodes/reftex.el
lisp/woman.el

index b1a4fe4d547442bc325cf5a0267dccce97da23c3..ce37a28c351c9d7ab58e846c91af5363624ebd65 100644 (file)
@@ -877,10 +877,9 @@ 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."
-  (when (fboundp 'help-setup-xref)
-    (help-setup-xref
-     (list 'mode-local-describe-bindings-1 buffer-or-mode)
-     interactive-p))
+  (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))))
index ebc4159a4c5f780ba0d5851f57865a65b085c853..1d16b024a5e7cde4f7b0ff19035726e7688dae33 100644 (file)
@@ -735,12 +735,9 @@ yanked to."
 Optional argument KILL-FLAG will delete the text of the tag to the
 kill ring.
 
-Interactively, reads the register using `register-read-with-preview',
-if available."
-  (interactive (list (if (fboundp 'register-read-with-preview)
-                        (register-read-with-preview "Tag to register: ")
-                      (read-char "Tag to register: "))
-                    current-prefix-arg))
+Interactively, reads the register using `register-read-with-preview'."
+  (interactive (list (register-read-with-preview "Tag to register: ")
+                     current-prefix-arg))
   (semantic-fetch-tags)
   (let ((ft (semantic-obtain-foreign-tag)))
     (when ft
index 4ca53f108f11f0f71809cbdbfa6dfa10c145e39f..f740af3b6d17633d33eecee0361677faaa0cdf20 100644 (file)
@@ -756,8 +756,7 @@ Export subscriptions to a buffer in OPML Format."
     (insert "  </body>\n"
            "</opml>\n"))
   (pop-to-buffer "*OPML Export*")
-  (when (fboundp 'sgml-mode)
-    (sgml-mode)))
+  (sgml-mode))
 
 (defun nnrss-generate-download-script ()
   "Generate a download script in the current buffer.
index 113fbbaddf1b99339decc51cf1f33d3c0949a3a0..7ae58884f97293c5394d95e1d2fe67e92639679e 100644 (file)
@@ -2217,8 +2217,7 @@ Export subscriptions to a buffer in OPML Format."
           (newsticker--opml-insert-feed (car f) 4)))
       (insert "  </body>\n</opml>\n")))
   (pop-to-buffer "*OPML Export*")
-  (when (fboundp 'sgml-mode)
-    (sgml-mode)))
+  (sgml-mode))
 
 (defun newsticker--opml-insert-elt (elt depth)
   "Insert an OPML ELT with indentation level DEPTH."
index 907d50889a1f92b769a25358c2dd40b81f5672a8..e72576cdc743f19fd4f3f175cd622689f5e5d4db 100644 (file)
@@ -2257,8 +2257,7 @@ IGNORE-WORDS List of words which should be removed from the string."
    ("Customize"
     ["Browse RefTeX Group" reftex-customize t]
     "--"
-    ["Build Full Customize Menu" reftex-create-customize-menu
-     (fboundp 'customize-menu-create)])
+    ["Build Full Customize Menu" reftex-create-customize-menu])
    ("Documentation"
     ["Info" reftex-info t]
     ["Commentary" reftex-show-commentary t])))
index c0c8f34348422ae78ebeb1dc741db42169551bc8..fd5fee2005a87d19be456257bfc837aa0e9f2b33 100644 (file)
@@ -1813,8 +1813,7 @@ Argument EVENT is the invoking mouse event."
    "--"
    ["Describe (Wo)Man Mode" describe-mode t]
    ["Mini Help" woman-mini-help t]
-   ,@(if (fboundp 'customize-group)
-        '(["Customize..." (customize-group 'woman) t]))
+   ["Customize..." (customize-group 'woman) t]
    "--"
    ("Advanced"
     ["View Source" (view-file woman-last-file-name) woman-last-file-name]