mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
(repunctuate-sentences): New function.
This commit is contained in:
parent
a28fe04bbd
commit
d320a41dbf
@ -420,6 +420,14 @@ sentences. Also, every paragraph boundary terminates sentences as well."
|
||||
(setq arg (1- arg)))
|
||||
(constrain-to-field nil opoint t)))
|
||||
|
||||
(defun repunctuate-sentences ()
|
||||
(interactive)
|
||||
"Put two spaces at the end of sentences from point to the end of buffer.
|
||||
It works using `query-replace-regexp'."
|
||||
(query-replace-regexp "\\([]\"')]?\\)\\([.?!]\\)\\([]\"')]?\\) +"
|
||||
"\\1\\2\\3 "))
|
||||
|
||||
|
||||
(defun backward-sentence (&optional arg)
|
||||
"Move backward to start of sentence. With arg, do it arg times.
|
||||
See `forward-sentence' for more information."
|
||||
|
Loading…
Reference in New Issue
Block a user