emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: suggestion: add "repunctuate" functionality


From: Eli Zaretskii
Subject: Re: suggestion: add "repunctuate" functionality
Date: Sat, 24 May 2003 12:44:25 +0300

> From: Daniel Ortmann <address@hidden>
> Date: 20 May 2003 12:27:30 -0500
> 
> Text sentences are recognized by double space after punctuation with
> optional ' " or ) characters to the right.
> 
> Email, news and other text commonly uses French spacing with a single
> character after a sentence.  Emacs does not recognize sentences with
> French spacing, causing reformatting and M-a / M-e difficulties.
> 
> One solution is to facilitate updating single-spaced sentences with
> double spaces.
> 
> Consider adding functionality similar to the following:
> 
> (defun repunctuate () (interactive)
>   (query-replace-regexp "\\([\"')]?\\)\\([.?!]\\)\\([\"')]?\\) +" "\\1\\2\\3  
> "))

The node "Sentences" in the Emacs manual tells you how to adapt Emacs
to sentences that end with a sinle space after the period.  Does the
advice there help?  If not, why not?




reply via email to

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