diff options
| author | Richard M. Stallman | 1994-10-30 20:05:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-30 20:05:58 +0000 |
| commit | 5ec5330e64560096ddb64720ff0cdfeeaa5e3f9d (patch) | |
| tree | 25b2a42d87dbd0cacc12b6ba338ad32e834ea91c | |
| parent | eef805d7ea423a459b2f1b935ff0b2dd57fe6386 (diff) | |
| download | emacs-5ec5330e64560096ddb64720ff0cdfeeaa5e3f9d.tar.gz emacs-5ec5330e64560096ddb64720ff0cdfeeaa5e3f9d.zip | |
(texinfo-format-scan): Make @- vanish; don't insert -.
(texinfo-format-soft-hyphen): New function.
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 6c770caec27..e7b8b5562ce 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -641,7 +641,7 @@ lower types.") | |||
| 641 | ;; Scan for @-commands. | 641 | ;; Scan for @-commands. |
| 642 | (goto-char (point-min)) | 642 | (goto-char (point-min)) |
| 643 | (while (search-forward "@" nil t) | 643 | (while (search-forward "@" nil t) |
| 644 | (if (looking-at "[@{}^'` *\"?!-]") | 644 | (if (looking-at "[@{}^'` *\"?!]") |
| 645 | ;; Handle a few special @-followed-by-one-char commands. | 645 | ;; Handle a few special @-followed-by-one-char commands. |
| 646 | (if (= (following-char) ?*) | 646 | (if (= (following-char) ?*) |
| 647 | (progn | 647 | (progn |
| @@ -1054,7 +1054,8 @@ lower types.") | |||
| 1054 | (insert ?\n))) | 1054 | (insert ?\n))) |
| 1055 | 1055 | ||
| 1056 | 1056 | ||
| 1057 | ;;; Space controlling commands: @. and @: | 1057 | ;;; Space controlling commands: @. and @:, and the soft hyphen. |
| 1058 | |||
| 1058 | (put '\. 'texinfo-format 'texinfo-format-\.) | 1059 | (put '\. 'texinfo-format 'texinfo-format-\.) |
| 1059 | (defun texinfo-format-\. () | 1060 | (defun texinfo-format-\. () |
| 1060 | (texinfo-discard-command) | 1061 | (texinfo-discard-command) |
| @@ -1064,6 +1065,10 @@ lower types.") | |||
| 1064 | (defun texinfo-format-\: () | 1065 | (defun texinfo-format-\: () |
| 1065 | (texinfo-discard-command)) | 1066 | (texinfo-discard-command)) |
| 1066 | 1067 | ||
| 1068 | (put '\- 'texinfo-format 'texinfo-format-soft-hyphen) | ||
| 1069 | (defun texinfo-format-soft-hyphen () | ||
| 1070 | (texinfo-discard-command)) | ||
| 1071 | |||
| 1067 | 1072 | ||
| 1068 | ;;; @center, @sp, and @br | 1073 | ;;; @center, @sp, and @br |
| 1069 | 1074 | ||