Opened 13 years ago

#193 new defect

M-q (edit:fill-paragraph) should be better at finding the end of a sentence

Reported by: jgross@mit.edu Owned by:
Priority: minor Milestone:
Component: internals Keywords:
Cc:

Description

As discussed on zephyr, M-q should DTRT on (sentences in parentheses.), ("quoted sentences in parentheses."), etc.

According to http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/sentence_002dend.html, emacs uses a regular expression like "[.?!][]\"')}]*\\($\\|\t\\|␣␣\\)[\n]*" (where is a space). Evaluating (sentence-end) on my computer gives me "\\([.?!][]\"'”)}]*\\($\\|[  ]$\\|\t\\|[  ][  ]\\)\\|[。.?!]+\\)[  \t\n]*" (where one of each of the doubled spaces is a non-breaking space).

Change History (0)

Note: See TracTickets for help on using tickets.