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

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

suggestion: add "repunctuate" functionality


From: Daniel Ortmann
Subject: suggestion: add "repunctuate" functionality
Date: 20 May 2003 12:27:30 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

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  
"))

In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-05-16 on praxis
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Recent input:
SPC t h e SPC m o d e l i n e SPC a n d SPC n o SPC 
v e r s i o n SPC c o n t r o l SPC c o m m a n d s 
SPC w o r k . C-p M-f M-f M-f M-b t h e r e SPC i s 
SPC M-q C-a C-n C-n C-n C-n C-c C-c M-< C-x M-f C-v 
M-< C-s r e p u n C-a C-SPC C-n C-n M-w M-x r e p o 
t <backspace> <tab> r <tab> <return>

Recent messages:
Auto-saving...done
Sending...
Wrote /home/dortmann/Mail/emacs-sent-mail
Sending...done
Mark set
/home/dortmann/.emacs
Mark set
Mark saved where search started
Mark set
Making completion list...

-- 
Daniel Ortmann, LSI Logic, 3425 40th Av NW, Suite 200, Rochester MN 55901
work: address@hidden / 507.535.3861 / 63861 int / 8012.3861 gdds
home: address@hidden / 507.288.7732, 2414 30Av NW #D, Rochester MN 55901




reply via email to

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