;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;;###autoload
(defun manual-entry (topic &optional section)
"Display the Unix manual entry for TOPIC.
TOPIC is either the title of the entry, or has the form TITLE(SECTION)
-where SECTION is the desired section of the manual, as in `tty(4)'."
+where SECTION is the desired section of the manual, as in \"tty(4)\"."
(interactive "sManual entry (topic): ")
(if (= (length topic) 0)
(error "Must specify topic"))
(view-mode nil 'bury-buffer)
(message ""))))
-;; Hint: BS stands form more things than "back space"
+;; Hint: BS stands for more things than "back space"
(defun nuke-nroff-bs ()
(interactive "*")
;; Nuke headers: "MORE(1) UNIX Programmer's Manual MORE(1)"
(cond ((= preceding following)
;; x\bx
(delete-char -2))
+ ((and (= preceding ?o) (= following ?\+))
+ ;; o\b+
+ (delete-char -2))
((= preceding ?\_)
;; _\b
(delete-char -2))