# HG changeset patch # User Chong Yidong # Date 1295668386 18000 # Node ID 04c350138c72a4db8bba236aebed73f691767d27 # Parent 3c76e72abd5dfaa50c458a84e5250f4d6de58b85 * man.el (Man-highlight-references0): Use make-button (Bug#7881). diff -r 3c76e72abd5d -r 04c350138c72 lisp/ChangeLog --- a/lisp/ChangeLog Sat Jan 22 11:46:10 2011 +0900 +++ b/lisp/ChangeLog Fri Jan 21 22:53:06 2011 -0500 @@ -1,3 +1,7 @@ +2011-01-22 Chong Yidong + + * man.el (Man-highlight-references0): Use make-button (Bug#7881). + 2011-01-22 Phil Hagelberg * pcmpl-unix.el (pcmpl-ssh-config-file): New option. diff -r 3c76e72abd5d -r 04c350138c72 lisp/man.el --- a/lisp/man.el Sat Jan 22 11:46:10 2011 +0900 +++ b/lisp/man.el Fri Jan 21 22:53:06 2011 -0500 @@ -1154,7 +1154,9 @@ (goto-char (point-min)) nil))) (while (re-search-forward regexp end t) - (make-text-button + ;; An overlay button is preferable because the underlying text + ;; may have text property highlights (Bug#7881). + (make-button (match-beginning button-pos) (match-end button-pos) 'type type