[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c735ec9 7/8: Make texinfmt-version variable obsolete
From: |
Stefan Kangas |
Subject: |
master c735ec9 7/8: Make texinfmt-version variable obsolete |
Date: |
Wed, 10 Feb 2021 00:45:44 -0500 (EST) |
branch: master
commit c735ec94545d1ca726d6cdcfdf4b0847e55330d9
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Make texinfmt-version variable obsolete
* lisp/textmodes/texinfmt.el (texinfmt-version): Make variable and
command obsolete in favour of 'emacs-version'.
(texinfo-format-region, texinfo-format-buffer-1): Use
'emacs-version' instead of above obsolete variable.
---
lisp/textmodes/texinfmt.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index ed0a367..fe052e3 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -28,10 +28,12 @@
;;; Emacs lisp functions to convert Texinfo files to Info files.
(defvar texinfmt-version "2.42 of 7 Jul 2006")
+(make-obsolete-variable 'texinfmt-version 'emacs-version "28.1")
(defun texinfmt-version (&optional here)
"Show the version of texinfmt.el in the minibuffer.
If optional argument HERE is non-nil, insert info at point."
+ (declare (obsolete emacs-version "28.1"))
(interactive "P")
(let ((version-string
(format-message "Version of `texinfmt.el': %s" texinfmt-version)))
@@ -345,8 +347,8 @@ converted to Info is stored in a temporary buffer."
(file-name-nondirectory
(buffer-file-name input-buffer))))
(format-message "buffer `%s'" (buffer-name input-buffer)))
- (format-message "\nusing `texinfmt.el' version ")
- texinfmt-version
+ (format-message "\nusing `texinfmt.el' on Emacs version ")
+ emacs-version
".\n\n")
;; Now convert for real.
@@ -489,8 +491,8 @@ if large. You can use `Info-split' to do this manually."
(file-name-nondirectory
(buffer-file-name input-buffer))))
(format-message "buffer `%s'" (buffer-name input-buffer)))
- (format-message "\nusing `texinfmt.el' version ")
- texinfmt-version
+ (format-message "\nusing `texinfmt.el' on Emacs version ")
+ emacs-version
".\n\n")
;; Return data for indices.
(list outfile
- master updated (ff16c89 -> def5466), Stefan Kangas, 2021/02/10
- master 843ca06 2/8: Convert many manual cedet tests to ert, Stefan Kangas, 2021/02/10
- master a0451be 1/8: Use lexical-binding in almost all of play/*.el, Stefan Kangas, 2021/02/10
- master 45934e5 3/8: Change default semantic-lex-analyzer to semantic-lex, Stefan Kangas, 2021/02/10
- master 18ad138 4/8: Use lexical-binding in some test files, Stefan Kangas, 2021/02/10
- master c07459f 5/8: Move semantic/format.el tests to follow our conventions, Stefan Kangas, 2021/02/10
- master f0f5480 6/8: Use lexical-binding in bib-mode.el, Stefan Kangas, 2021/02/10
- master def5466 8/8: ; * test/lisp/cedet/semantic/format-tests.el: Minor cleanup., Stefan Kangas, 2021/02/10
- master c735ec9 7/8: Make texinfmt-version variable obsolete,
Stefan Kangas <=