aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2009-09-22 15:53:00 +0000
committerStefan Monnier2009-09-22 15:53:00 +0000
commitb0459dec62fdcb8f9329f963fe629c98217a9077 (patch)
tree8a06b520046e6aa3a3ed77d21d4ac67ddd7f5989
parent905b7d38170aebf5d0ebc2f401eabf3a3535cfae (diff)
downloademacs-b0459dec62fdcb8f9329f963fe629c98217a9077.tar.gz
emacs-b0459dec62fdcb8f9329f963fe629c98217a9077.zip
Convert to utf-8 encoding.
(fill-french-nobreak-p): Remove redundant » and « inherited from our pre-unicode days.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/textmodes/fill.el8
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 820724277d9..2383aac9d96 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12009-09-22 Stefan Monnier <monnier@iro.umontreal.ca> 12009-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * textmodes/fill.el: Convert to utf-8 encoding.
4 (fill-french-nobreak-p): Remove redundant » and « inherited from our
5 pre-unicode days.
6
3 * add-log.el (change-log-fill-forward-paragraph): New function. 7 * add-log.el (change-log-fill-forward-paragraph): New function.
4 (change-log-mode): Use it so fill-region DTRT. 8 (change-log-mode): Use it so fill-region DTRT.
5 Set fill-indent-according-to-mode here rather than in 9 Set fill-indent-according-to-mode here rather than in
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index c3ec0b95cb4..26dec949e90 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -1,4 +1,4 @@
1;;; fill.el --- fill commands for Emacs -*- coding: iso-2022-7bit -*- 1;;; fill.el --- fill commands for Emacs -*- coding: utf-8 -*-
2 2
3;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1999, 2001, 2002, 3;; Copyright (C) 1985, 1986, 1992, 1994, 1995, 1996, 1997, 1999, 2001, 2002,
4;; 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
@@ -92,7 +92,7 @@ reinserts the fill prefix in each resulting line."
92 ;; Added `!' for doxygen comments starting with `//!' or `/*!'. 92 ;; Added `!' for doxygen comments starting with `//!' or `/*!'.
93 ;; Added `%' for TeX comments. 93 ;; Added `%' for TeX comments.
94 ;; RMS: deleted the code to match `1.' and `(1)'. 94 ;; RMS: deleted the code to match `1.' and `(1)'.
95 "[ \t]*\\([-!|#%;>*,A7$,1s"s#sC$,2"F(B]+[ \t]*\\)*" 95 "[ \t]*\\([-!|#%;>*·•‣⁃◦]+[ \t]*\\)*"
96 "Regexp to match text at start of line that constitutes indentation. 96 "Regexp to match text at start of line that constitutes indentation.
97If Adaptive Fill mode is enabled, a prefix matching this pattern 97If Adaptive Fill mode is enabled, a prefix matching this pattern
98on the first and second lines of a paragraph is used as the 98on the first and second lines of a paragraph is used as the
@@ -317,12 +317,12 @@ after an opening paren or just before a closing paren or a punctuation
317mark such as `?' or `:'. It is common in French writing to put a space 317mark such as `?' or `:'. It is common in French writing to put a space
318at such places, which would normally allow breaking the line at those 318at such places, which would normally allow breaking the line at those
319places." 319places."
320 (or (looking-at "[ \t]*[])},A;,b;(B?!;:-]") 320 (or (looking-at "[ \t]*[])}»?!;:-]")
321 (save-excursion 321 (save-excursion
322 (skip-chars-backward " \t") 322 (skip-chars-backward " \t")
323 (unless (bolp) 323 (unless (bolp)
324 (backward-char 1) 324 (backward-char 1)
325 (or (looking-at "[([{,A+,b+(B]") 325 (or (looking-at "[([{«]")
326 ;; Don't cut right after a single-letter word. 326 ;; Don't cut right after a single-letter word.
327 (and (memq (preceding-char) '(?\t ?\s)) 327 (and (memq (preceding-char) '(?\t ?\s))
328 (eq (char-syntax (following-char)) ?w))))))) 328 (eq (char-syntax (following-char)) ?w)))))))