Commit 3d4147ba authored by Bastien Guerry's avatar Bastien Guerry
Browse files

* paren.el (show-paren-function): Make sure to set 'priority and

'face only if the overlay does exist.
parent e1ffa412
2013-01-24 Aaron Ecay <aaronecay@gmail.com> (tiny change)
* paren.el (show-paren-function): Make sure to set 'priority and
'face only if the overlay does exist.
2013-01-24 Michael Albinus <michael.albinus@gmx.de>
 
* net/tramp.el (tramp-tramp-file-p): Check, whether NAME is unibyte.
......
......@@ -259,11 +259,10 @@ matching parenthesis is highlighted in `show-paren-style' after
(- (point) dir)))))
(if show-paren-overlay
(move-overlay show-paren-overlay from to (current-buffer))
(setq show-paren-overlay (make-overlay from to nil t)))))
;;
;; Always set the overlay face, since it varies.
(overlay-put show-paren-overlay 'priority show-paren-priority)
(overlay-put show-paren-overlay 'face face)))
(setq show-paren-overlay (make-overlay from to nil t))))
;; Always set the overlay face, since it varies.
(overlay-put show-paren-overlay 'priority show-paren-priority)
(overlay-put show-paren-overlay 'face face))))
;; show-paren-mode is nil in this buffer.
(and show-paren-overlay
(delete-overlay show-paren-overlay))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment