aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-01 21:02:50 -0400
committerNoam Postavsky2017-06-27 20:34:14 -0400
commite06b547e9369cb7c9c77b81041003bb120170929 (patch)
treeb392b9a8d94fa457240f8545473ce31e460b52a0
parent2d992690de5bcb2036eeb4d2854761596b863704 (diff)
downloademacs-e06b547e9369cb7c9c77b81041003bb120170929.tar.gz
emacs-e06b547e9369cb7c9c77b81041003bb120170929.zip
Make tcl-auto-fill-mode obsolete (Bug#10772)
* lisp/progmodes/tcl.el (tcl-auto-fill-mode): Declare obsolete. * etc/NEWS: Announce it.
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/progmodes/tcl.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5456c1b6049..5e10ca9cb62 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1359,6 +1359,11 @@ window's body.
1359*** The semantics of 'mouse-autoselect-window' has changed slightly. 1359*** The semantics of 'mouse-autoselect-window' has changed slightly.
1360For details see the section "Mouse Window Auto-selection" in the Elisp 1360For details see the section "Mouse Window Auto-selection" in the Elisp
1361manual. 1361manual.
1362
1363---
1364** 'tcl-auto-fill-mode' is now declared obsolete. It's functionality
1365can be replicated simply by setting 'comment-auto-fill-only-comments'.
1366
1362 1367
1363* Changes in Emacs 26.1 on Non-Free Operating Systems 1368* Changes in Emacs 26.1 on Non-Free Operating Systems
1364 1369
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el
index 902a5aace08..de0cd50911a 100644
--- a/lisp/progmodes/tcl.el
+++ b/lisp/progmodes/tcl.el
@@ -353,8 +353,6 @@ information):
353 Quotes all \"#\" characters that don't correspond to actual 353 Quotes all \"#\" characters that don't correspond to actual
354 Tcl comments. (Useful when editing code not originally created 354 Tcl comments. (Useful when editing code not originally created
355 with this mode). 355 with this mode).
356 `tcl-auto-fill-mode'
357 Auto-filling of Tcl comments.
358 356
359Add functions to the hook with `add-hook': 357Add functions to the hook with `add-hook':
360 358
@@ -1413,6 +1411,9 @@ Prefix argument means switch to the Tcl buffer afterwards."
1413 1411
1414(defun tcl-auto-fill-mode (&optional arg) 1412(defun tcl-auto-fill-mode (&optional arg)
1415 "Like `auto-fill-mode', but sets `comment-auto-fill-only-comments'." 1413 "Like `auto-fill-mode', but sets `comment-auto-fill-only-comments'."
1414 (declare
1415 (obsolete
1416 "Use `auto-fill-mode' with `comment-auto-fill-only-comments'." "26.1"))
1416 (interactive "P") 1417 (interactive "P")
1417 (auto-fill-mode arg) 1418 (auto-fill-mode arg)
1418 (if auto-fill-function 1419 (if auto-fill-function