summaryrefslogtreecommitdiff
path: root/lisp/language
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2002-10-28 14:40:18 +0000
committerDave Love <fx@gnu.org>2002-10-28 14:40:18 +0000
commit34b5d116a3fed46503f6a8844095c88031e36759 (patch)
treebfe166c5329a7fb4dd47896b546d4ac2b87870a1 /lisp/language
parentd14a2a1f3656673dcd9e73ac9fb9f36faa4dad0d (diff)
downloademacs-34b5d116a3fed46503f6a8844095c88031e36759.tar.gz
(diacritic-composition-function): Modify
confused prog1 form.
Diffstat (limited to 'lisp/language')
-rw-r--r--lisp/language/european.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/language/european.el b/lisp/language/european.el
index 338b73fe960..c531b74fbda 100644
--- a/lisp/language/european.el
+++ b/lisp/language/european.el
@@ -625,13 +625,12 @@ The text matches the regular expression PATTERN.
Optional 4th argument STRING, if non-nil, is a string containing text
to compose.
-The return value is number of composed characters."
- (if (< (1+ from) to)
- (prog1 (- to from)
- (if string
- (compose-string string from to)
- (compose-region from to))
- (- to from))))
+The return value is the number of composed characters."
+ (when (< (1+ from) to)
+ (if string
+ (compose-string string from to)
+ (compose-region from to))
+ (- to from)))
;; Register a function to compose Unicode diacrtics and marks.
(let ((patterns '(("\\C^\\c^+" . diacritic-composition-function))))