1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- (defvar nroff-mode-abbrev-table nil "\
- Abbrev table used while in nroff mode.")
- (defvar nroff-mode-map nil "\
- Major mode keymap for nroff-mode buffers")
- (if (not nroff-mode-map) (progn (setq nroff-mode-map (make-sparse-keymap)) (define-key nroff-mode-map " " (quote tab-to-tab-stop)) (define-key nroff-mode-map "s" (quote center-line)) (define-key nroff-mode-map "?" (quote count-text-lines)) (define-key nroff-mode-map "
- " (quote electric-nroff-newline)) (define-key nroff-mode-map "n" (quote forward-text-line)) (define-key nroff-mode-map "p" (quote backward-text-line))))
- (defun nroff-mode nil "\
- Major mode for editing text intended for nroff to format.
- \\{nroff-mode-map}
- Turning on Nroff mode runs text-mode-hook, then nroff-mode-hook.
- Also, try nroff-electric-mode, for automatically inserting
- closing requests for requests that are used in matched pairs." (interactive) (byte-code "͈ΠˆÏ!ˆÐ‰ˆÑ‰ˆÒ!ˆ
‰ˆÓÔ!ˆÓÆ!ˆÕ‰ˆÓÇ!ˆÖP‰ˆÓÈ!ˆÖP‰ˆÓÉ!ˆ×‰ ˆÓÊ!ˆØ‰
- ˆÓË!ˆÙ‰ˆÓÌ!ˆÚ‰ˆÛÜÝ\"‡" [nroff-mode-map mode-name major-mode text-mode-syntax-table local-abbrev-table nroff-mode-abbrev-table page-delimiter paragraph-start paragraph-separate comment-start comment-start-skip comment-column comment-indent-hook nil kill-all-local-variables use-local-map "Nroff" nroff-mode set-syntax-table make-local-variable nroff-electric-mode "^\\.bp" "^\\.\\|" "\\\" " "\\\\\"[ ]*" 24 nroff-comment-indent run-hooks text-mode-hook nroff-mode-hook] 14))
- (defun nroff-comment-indent nil "\
- Compute indent for an nroff/troff comment.
- Puts a full-stop before comments on a line by themselves." (byte-code "`ÂŽÃÄ!ˆnƒ T‰ˆÅcˆÆ‚3 ŠÇÆ!ˆÈÉ!)ƒ( Æ‚3 ÊËÌiÍ\\Ë\"\"]))‡" [pt comment-column ((byte-code "b‡" [pt] 1)) skip-chars-backward " " 46 1 backward-char looking-at "^\\." * 8 / 9] 9))
- (defun count-text-lines (start end &optional print) "\
- Count lines in region, except for nroff request lines.
- All lines not starting with a period are counted up.
- Interactively, print result in echo area.
- Noninteractively, return number of non-request lines from START to END." (interactive "r
- p") (byte-code "ȃ ÄÅÆ
- \"\"‚# ŠŒÇ
- \"ˆebˆÈ ÉÈ !Z))‡" [print start end nil message "Region has %d text lines" count-text-lines narrow-to-region buffer-size forward-text-line] 8))
- (defun forward-text-line (&optional cnt) "\
- Go forward one nroff text line, skipping lines of nroff requests.
- An argument is a repeat count; if negative, move backward." (interactive "p") (byte-code "Áˆ?ƒ
‰‚ ÁˆÃV… m?…: ÄÂ!ˆm?…&
|