aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-11-01 10:04:19 +0000
committerJuri Linkov2005-11-01 10:04:19 +0000
commit4dacf0ff4bdb950dbc4f168be79426e77c944ecb (patch)
tree0a233eef07f17233e9a32b8ef4eccc5cbb7a0fbc
parent993159761a8d77bd458a8f5841daeffd5f785944 (diff)
downloademacs-4dacf0ff4bdb950dbc4f168be79426e77c944ecb.tar.gz
emacs-4dacf0ff4bdb950dbc4f168be79426e77c944ecb.zip
(Info-fontify-node): Use `string-width' for fontifying underlined titles.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 03356b20c09..5cfa331cb34 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-11-01 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
2
3 * info.el (Info-fontify-node): Use `string-width' for fontifying
4 underlined titles.
5
12005-11-01 Juri Linkov <juri@jurta.org> 62005-11-01 Juri Linkov <juri@jurta.org>
2 7
3 * info.el (Info-fontify-node): Downcase node header keywords Node, 8 * info.el (Info-fontify-node): Downcase node header keywords Node,
diff --git a/lisp/info.el b/lisp/info.el
index a151bea0444..1b408f2077e 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3722,8 +3722,8 @@ the variable `Info-file-list-for-emacs'."
3722 ;; underline has the same size as the text. A typical 3722 ;; underline has the same size as the text. A typical
3723 ;; counter example is when a continuation "..." is alone 3723 ;; counter example is when a continuation "..." is alone
3724 ;; on a line. 3724 ;; on a line.
3725 (= (- (match-end 1) (match-beginning 1)) 3725 (= (string-width (match-string 1))
3726 (- (match-end 2) (match-beginning 2)))) 3726 (string-width (match-string 2))))
3727 (let* ((c (preceding-char)) 3727 (let* ((c (preceding-char))
3728 (face 3728 (face
3729 (cond ((= c ?*) 'info-title-1) 3729 (cond ((= c ?*) 'info-title-1)