emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e06b547 2/2: Make tcl-auto-fill-mode obsolete (Bug#


From: Noam Postavsky
Subject: [Emacs-diffs] master e06b547 2/2: Make tcl-auto-fill-mode obsolete (Bug#10772)
Date: Tue, 27 Jun 2017 20:35:08 -0400 (EDT)

branch: master
commit e06b547e9369cb7c9c77b81041003bb120170929
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Make tcl-auto-fill-mode obsolete (Bug#10772)
    
    * lisp/progmodes/tcl.el (tcl-auto-fill-mode): Declare obsolete.
    * etc/NEWS: Announce it.
---
 etc/NEWS              | 5 +++++
 lisp/progmodes/tcl.el | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 5456c1b..5e10ca9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1359,6 +1359,11 @@ window's body.
 *** The semantics of 'mouse-autoselect-window' has changed slightly.
 For details see the section "Mouse Window Auto-selection" in the Elisp
 manual.
+
+---
+** 'tcl-auto-fill-mode' is now declared obsolete.  It's functionality
+can be replicated simply by setting 'comment-auto-fill-only-comments'.
+
 
 * Changes in Emacs 26.1 on Non-Free Operating Systems
 
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 902a5aa..de0cd50 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -353,8 +353,6 @@ information):
     Quotes all \"#\" characters that don't correspond to actual
     Tcl comments.  (Useful when editing code not originally created
     with this mode).
-  `tcl-auto-fill-mode'
-    Auto-filling of Tcl comments.
 
 Add functions to the hook with `add-hook':
 
@@ -1413,6 +1411,9 @@ Prefix argument means switch to the Tcl buffer 
afterwards."
 
 (defun tcl-auto-fill-mode (&optional arg)
   "Like `auto-fill-mode', but sets `comment-auto-fill-only-comments'."
+  (declare
+   (obsolete
+    "Use `auto-fill-mode' with `comment-auto-fill-only-comments'." "26.1"))
   (interactive "P")
   (auto-fill-mode arg)
   (if auto-fill-function



reply via email to

[Prev in Thread] Current Thread [Next in Thread]