emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/textmodes/paragraphs.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/paragraphs.el
Date: Fri, 23 May 2003 08:46:38 -0400

Index: emacs/lisp/textmodes/paragraphs.el
diff -c emacs/lisp/textmodes/paragraphs.el:1.65 
emacs/lisp/textmodes/paragraphs.el:1.66
*** emacs/lisp/textmodes/paragraphs.el:1.65     Sun Feb 23 23:50:59 2003
--- emacs/lisp/textmodes/paragraphs.el  Fri May 23 08:46:38 2003
***************
*** 420,425 ****
--- 420,433 ----
        (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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]