changeset 112408:04c350138c72

* man.el (Man-highlight-references0): Use make-button (Bug#7881).
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 21 Jan 2011 22:53:06 -0500
parents 3c76e72abd5d
children 0222e3f822e3
files lisp/ChangeLog lisp/man.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <cyd@stupidchicken.com>
+
+	* man.el (Man-highlight-references0): Use make-button (Bug#7881).
+
 2011-01-22  Phil Hagelberg  <phil@evri.com>
 
 	* pcmpl-unix.el (pcmpl-ssh-config-file): New option.
--- 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