diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-01-21 22:53:06 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-01-21 22:53:06 -0500 |
commit | cde7e38b6bccaf8a6316025262d640a8ed18ea8f (patch) | |
tree | eeeb4cbf1cd1a465f4e42ee2b529083b5fd9e1cc /lisp/man.el | |
parent | 9ba41eb9d96a25ce341884d44084508a5df1015d (diff) | |
download | emacs-cde7e38b6bccaf8a6316025262d640a8ed18ea8f.tar.gz |
* man.el (Man-highlight-references0): Use make-button (Bug#7881).
Diffstat (limited to 'lisp/man.el')
-rw-r--r-- | lisp/man.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el index d22ea9cebb6..98257e62bfc 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -1154,7 +1154,9 @@ default type, `Man-xref-man-page' is used for the buttons." (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 |