aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry O'Reilly2013-10-30 21:50:24 -0400
committerBarry O'Reilly2013-10-30 21:50:24 -0400
commitbed64093f764c17050c71f2323f30c9a745769d9 (patch)
tree973a0a202b2db6443871db05596776bc47317526
parent0fb90d258edb36c2a732dd3138762c511f1cee4a (diff)
downloademacs-bed64093f764c17050c71f2323f30c9a745769d9.tar.gz
emacs-bed64093f764c17050c71f2323f30c9a745769d9.zip
* semantic/idle.el (semantic-idle-symbol-highlight)
(semantic-idle-symbol-highlight-face): Define face with defface and obsolete the replaced one defined with defvar. (Bug#15745) * pulse.el (pulse-momentary-highlight-overlay) (pulse-momentary-highlight-region): Fix typo in doc
-rw-r--r--lisp/cedet/ChangeLog8
-rw-r--r--lisp/cedet/pulse.el4
-rw-r--r--lisp/cedet/semantic/idle.el8
3 files changed, 17 insertions, 3 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index 22ad40eb644..ec019d56ae2 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,11 @@
12013-10-28 Barry O'Reilly <gundaetiapo@gmail.com>
2
3 * semantic/idle.el (semantic-idle-symbol-highlight)
4 (semantic-idle-symbol-highlight-face): Define face with defface
5 and obsolete the replaced one defined with defvar. (Bug#15745)
6 * pulse.el (pulse-momentary-highlight-overlay)
7 (pulse-momentary-highlight-region): Fix typo in doc
8
12013-10-30 Glenn Morris <rgm@gnu.org> 92013-10-30 Glenn Morris <rgm@gnu.org>
2 10
3 * semantic/grammar.el (semantic-grammar-mode-keywords-2) 11 * semantic/grammar.el (semantic-grammar-mode-keywords-2)
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 268beed8b1a..4a3b5011617 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -180,7 +180,7 @@ Be sure to call `pulse-reset-face' after calling pulse."
180 180
181(defun pulse-momentary-highlight-overlay (o &optional face) 181(defun pulse-momentary-highlight-overlay (o &optional face)
182 "Pulse the overlay O, unhighlighting before next command. 182 "Pulse the overlay O, unhighlighting before next command.
183Optional argument FACE specifies the fact to do the highlighting." 183Optional argument FACE specifies the face to do the highlighting."
184 (overlay-put o 'original-face (overlay-get o 'face)) 184 (overlay-put o 'original-face (overlay-get o 'face))
185 (add-to-list 'pulse-momentary-overlay o) 185 (add-to-list 'pulse-momentary-overlay o)
186 (if (eq pulse-flag 'never) 186 (if (eq pulse-flag 'never)
@@ -237,7 +237,7 @@ Optional argument FACE specifies the face to do the highlighting."
237 237
238(defun pulse-momentary-highlight-region (start end &optional face) 238(defun pulse-momentary-highlight-region (start end &optional face)
239 "Highlight between START and END, unhighlighting before next command. 239 "Highlight between START and END, unhighlighting before next command.
240Optional argument FACE specifies the fact to do the highlighting." 240Optional argument FACE specifies the face to do the highlighting."
241 (let ((o (make-overlay start end))) 241 (let ((o (make-overlay start end)))
242 ;; Mark it for deletion 242 ;; Mark it for deletion
243 (overlay-put o 'pulse-delete t) 243 (overlay-put o 'pulse-delete t)
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index d024e5d8237..c15b6bf8bb4 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -830,8 +830,14 @@ turned on in every Semantic-supported buffer."
830;; of all uses of the symbol that is under the cursor. 830;; of all uses of the symbol that is under the cursor.
831;; 831;;
832;; This is to mimic the Eclipse tool of a similar nature. 832;; This is to mimic the Eclipse tool of a similar nature.
833(defvar semantic-idle-symbol-highlight-face 'region 833(defface semantic-idle-symbol-highlight
834 '((t :inherit region))
835 "Face used for highlighting local symbols."
836 :group 'semantic-faces)
837(defvar semantic-idle-symbol-highlight-face 'semantic-idle-symbol-highlight
834 "Face used for highlighting local symbols.") 838 "Face used for highlighting local symbols.")
839(make-obsolete-variable 'semantic-idle-symbol-highlight-face
840 "customize the face `semantic-idle-symbol-highlight' instead" "24.4" 'set)
835 841
836(defun semantic-idle-symbol-maybe-highlight (tag) 842(defun semantic-idle-symbol-maybe-highlight (tag)
837 "Perhaps add highlighting to the symbol represented by TAG. 843 "Perhaps add highlighting to the symbol represented by TAG.