From: Paul Eggert Date: Mon, 23 Apr 2018 17:44:24 +0000 (-0700) Subject: Backspace is not a paragraph separator in Texinfo files X-Git-Tag: emacs-27.0.90~5106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c6b59918aaaac295fd6354dae929859eaaacfa2;p=emacs.git Backspace is not a paragraph separator in Texinfo files * lisp/textmodes/texinfo.el (texinfo-mode): Omit backspace from paragraph separator and start. Perhaps there was some confusion about .texi vs .info files long ago? --- diff --git a/doc/misc/org.texi b/doc/misc/org.texi index 7453b1db042..807b80dbdb5 100644 --- a/doc/misc/org.texi +++ b/doc/misc/org.texi @@ -19694,8 +19694,8 @@ mentioned in the manual. For a complete list, use @kbd{M-x org-customize @c Local variables: @c fill-column: 77 @c indent-tabs-mode: nil -@c paragraph-start: "\\|^@[a-zA-Z]*[ \n]\\|^@x?org\\(key\\|cmd\\)\\|\f\\|[ ]*$" -@c paragraph-separate: "\\|^@[a-zA-Z]*[ \n]\\|^@x?org\\(key\\|cmd\\)\\|[ \f]*$" +@c paragraph-start: "^@[a-zA-Z]*[ \n]\\|^@x?org\\(key\\|cmd\\)\\|\f\\|[ ]*$" +@c paragraph-separate: "^@[a-zA-Z]*[ \n]\\|^@x?org\\(key\\|cmd\\)\\|[ \f]*$" @c End: diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 16399bd9fd7..ff723a4fb94 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el @@ -596,9 +596,9 @@ value of `texinfo-mode-hook'." (setq-local require-final-newline mode-require-final-newline) (setq-local indent-tabs-mode nil) (setq-local paragraph-separate - (concat "\b\\|@[a-zA-Z]*[ \n]\\|" + (concat "@[a-zA-Z]*[ \n]\\|" paragraph-separate)) - (setq-local paragraph-start (concat "\b\\|@[a-zA-Z]*[ \n]\\|" + (setq-local paragraph-start (concat "@[a-zA-Z]*[ \n]\\|" paragraph-start)) (setq-local sentence-end-base "\\(@\\(end\\)?dots{}\\|[.?!]\\)[]\"'”)}]*") (setq-local fill-column 70)