aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-02-20 22:55:19 -0800
committerGlenn Morris2013-02-20 22:55:19 -0800
commit5313bbc7716f88453d329a39181e6e583ebcc41f (patch)
tree4b2fe77a358c98c293b872568b0fa90914a4b5d2
parentbed1791adc32683ed9bb2b93e229a88805196c87 (diff)
downloademacs-5313bbc7716f88453d329a39181e6e583ebcc41f.tar.gz
emacs-5313bbc7716f88453d329a39181e6e583ebcc41f.zip
Make Info-edit obsolete
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00374.html (Warning: interminable bikeshedding in thread) * lisp/info.el (Info-enable-edit): Remove. (Info-edit): Disable it rather than using Info-enable. (Info-edit-mode-hook, Info-edit-map, Info-edit-mode, Info-edit) (Info-cease-edit): Make editing of Info files obsolete. * etc/NEWS: Mention this.
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el33
3 files changed, 29 insertions, 13 deletions
diff --git a/etc/NEWS b/etc/NEWS
index de151d0c884..d6691ffed8f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -218,6 +218,10 @@ are obsolete. Customize the `woman-* faces instead.
218+++ 218+++
219*** yow.el is obsolete; use fortune.el or cookie1.el instead. 219*** yow.el is obsolete; use fortune.el or cookie1.el instead.
220 220
221---
222*** The Info-edit command is obsolete. Editing Info nodes by hand
223has not been relevant for some time.
224
221 225
222* New Modes and Packages in Emacs 24.4 226* New Modes and Packages in Emacs 24.4
223** New nadvice.el package offering lighter-weight advice facilities. 227** New nadvice.el package offering lighter-weight advice facilities.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e54b777b3d0..15dd5d30654 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12013-02-21 Glenn Morris <rgm@gnu.org> 12013-02-21 Glenn Morris <rgm@gnu.org>
2 2
3 * info.el (Info-enable-edit): Remove.
4 (Info-edit): Disable it rather than using Info-enable.
5 (Info-edit-mode-hook, Info-edit-map, Info-edit-mode, Info-edit)
6 (Info-cease-edit): Make editing of Info files obsolete.
7
3 * informat.el (Info-tagify): 8 * informat.el (Info-tagify):
4 Handle buffers not visiting files. (Bug#13763) 9 Handle buffers not visiting files. (Bug#13763)
5 10
diff --git a/lisp/info.el b/lisp/info.el
index 24a7181ff52..3792857d47a 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -59,15 +59,6 @@ to the user."
59 :group 'info 59 :group 'info
60 :version "24.1") 60 :version "24.1")
61 61
62(defcustom Info-enable-edit nil
63 "Non-nil means the \\<Info-mode-map>\\[Info-edit] command in Info can edit the current node.
64This is convenient if you want to write Info files by hand.
65However, we recommend that you not do this.
66It is better to write a Texinfo file and generate the Info file from that,
67because that gives you a printed manual as well."
68 :type 'boolean
69 :group 'info)
70
71(defvar Info-enable-active-nodes nil 62(defvar Info-enable-active-nodes nil
72 "Non-nil allows Info to execute Lisp code associated with nodes. 63 "Non-nil allows Info to execute Lisp code associated with nodes.
73The Lisp code is executed when the node is selected.") 64The Lisp code is executed when the node is selected.")
@@ -375,6 +366,9 @@ with wrapping around the current Info node."
375(defvar Info-edit-mode-hook nil 366(defvar Info-edit-mode-hook nil
376 "Hooks run when `Info-edit-mode' is called.") 367 "Hooks run when `Info-edit-mode' is called.")
377 368
369(make-obsolete-variable 'Info-edit-mode-hook
370 "editing Info nodes by hand is not recommended." "24.4")
371
378(defvar Info-current-file nil 372(defvar Info-current-file nil
379 "Info file that Info is now looking at, or nil. 373 "Info file that Info is now looking at, or nil.
380This is the name that was specified in Info, not the actual file name. 374This is the name that was specified in Info, not the actual file name.
@@ -4253,6 +4247,10 @@ Advanced commands:
4253 map) 4247 map)
4254 "Local keymap used within `e' command of Info.") 4248 "Local keymap used within `e' command of Info.")
4255 4249
4250(make-obsolete-variable 'Info-edit-map
4251 "editing Info nodes by hand is not recommended."
4252 "24.4")
4253
4256;; Info-edit mode is suitable only for specially formatted data. 4254;; Info-edit mode is suitable only for specially formatted data.
4257(put 'Info-edit-mode 'mode-class 'special) 4255(put 'Info-edit-mode 'mode-class 'special)
4258 4256
@@ -4270,16 +4268,22 @@ which returns to Info mode for browsing.
4270 (buffer-enable-undo (current-buffer)) 4268 (buffer-enable-undo (current-buffer))
4271 (run-mode-hooks 'Info-edit-mode-hook)) 4269 (run-mode-hooks 'Info-edit-mode-hook))
4272 4270
4271(make-obsolete 'Info-edit-mode
4272 "editing Info nodes by hand is not recommended." "24.4")
4273
4273(defun Info-edit () 4274(defun Info-edit ()
4274 "Edit the contents of this Info node. 4275 "Edit the contents of this Info node."
4275Allowed only if variable `Info-enable-edit' is non-nil."
4276 (interactive) 4276 (interactive)
4277 (or Info-enable-edit
4278 (error "Editing Info nodes is not enabled"))
4279 (Info-edit-mode) 4277 (Info-edit-mode)
4280 (message "%s" (substitute-command-keys 4278 (message "%s" (substitute-command-keys
4281 "Editing: Type \\<Info-edit-map>\\[Info-cease-edit] to return to info"))) 4279 "Editing: Type \\<Info-edit-map>\\[Info-cease-edit] to return to info")))
4282 4280
4281(put 'Info-edit 'disabled "Editing Info nodes by hand is not recommended.
4282This feature will be removed in future.")
4283
4284(make-obsolete 'Info-edit
4285 "editing Info nodes by hand is not recommended." "24.4")
4286
4283(defun Info-cease-edit () 4287(defun Info-cease-edit ()
4284 "Finish editing Info node; switch back to Info proper." 4288 "Finish editing Info node; switch back to Info proper."
4285 (interactive) 4289 (interactive)
@@ -4296,6 +4300,9 @@ Allowed only if variable `Info-enable-edit' is non-nil."
4296 (and (marker-position Info-tag-table-marker) 4300 (and (marker-position Info-tag-table-marker)
4297 (buffer-modified-p) 4301 (buffer-modified-p)
4298 (message "Tags may have changed. Use Info-tagify if necessary"))) 4302 (message "Tags may have changed. Use Info-tagify if necessary")))
4303
4304(make-obsolete 'Info-cease-edit
4305 "editing Info nodes by hand is not recommended." "24.4")
4299 4306
4300(defvar Info-file-list-for-emacs 4307(defvar Info-file-list-for-emacs
4301 '("ediff" "eudc" "forms" "gnus" "info" ("Info" . "info") ("mh" . "mh-e") 4308 '("ediff" "eudc" "forms" "gnus" "info" ("Info" . "info") ("mh" . "mh-e")