From: Andrew Helsley <helsleya@cs.ucr.edu>
To: emacs-devel@gnu.org
Subject: [PATCH] isearch: Propertize error messages
Date: Sun, 21 Nov 2010 23:54:11 -0800 (PST) [thread overview]
Message-ID: <alpine.LRH.2.00.1011212322100.16650@eon.cs.ucr.edu> (raw)
This patches enhances the visual contrast between the search expression
and any error messages that show at the end of the line in `isearch-mode'.
--------
regards,
Andrew Helsley
diff -r -c emacs-1/lisp/ChangeLog emacs-2/lisp/ChangeLog
*** emacs-1/lisp/ChangeLog 2010-11-21 23:17:59.000000000 -0800
--- emacs-2/lisp/ChangeLog 2010-11-21 23:17:33.000000000 -0800
***************
*** 1,3 ****
--- 1,6 ----
+ 2010-11-21 Andrew Helsley <helsleya@cs.ucr.edu>
+ * isearch.el (isearch-message-suffix): Propertize error messages.
+
2010-11-21 Michael Albinus <michael.albinus@gmx.de>
* files.el (backup-by-copying-when-mismatch): The default value is
diff -r -c emacs-1/lisp/isearch.el emacs-2/lisp/isearch.el
*** emacs-1/lisp/isearch.el 2010-11-21 22:57:58.000000000 -0800
--- emacs-2/lisp/isearch.el 2010-11-21 23:11:58.000000000 -0800
***************
*** 257,262 ****
--- 257,268 ----
:version "23.1"
:group 'isearch)
+ (defface isearch-error-message
+ '((t (:inherit font-lock-warning-face)))
+ "Face for highlighting error messages in Isearch echo area."
+ :group 'isearch
+ :group 'basic-faces)
+
(defcustom isearch-lazy-highlight t
"Controls the lazy-highlighting during incremental search.
When non-nil, all text in the buffer matching the current search
***************
*** 2188,2194 ****
(defun isearch-message-suffix (&optional c-q-hack ellipsis)
(concat (if c-q-hack "^Q" "")
(if isearch-error
! (concat " [" isearch-error "]")
"")
(or isearch-message-suffix-add "")))
--- 2194,2201 ----
(defun isearch-message-suffix (&optional c-q-hack ellipsis)
(concat (if c-q-hack "^Q" "")
(if isearch-error
! (propertize (concat " [" isearch-error "]")
! 'face 'isearch-error-message)
"")
(or isearch-message-suffix-add "")))
next reply other threads:[~2010-11-22 7:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 7:54 Andrew Helsley [this message]
2010-11-23 0:55 ` [PATCH] isearch: Propertize error messages Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.00.1011212322100.16650@eon.cs.ucr.edu \
--to=helsleya@cs.ucr.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.