Opened 13 years ago

#193 new defect

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

Reported by: Owned by:
Priority: minor Milestone:
Component: internals Keywords:


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

According to, 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.