Thank you very much! Works! The single quote versus the double quote made
all the difference! Cheers, S.
-----Original Message-----
From: Stephen J. Turnbull [mailto:stephen@xemacs.org]
Sent: Tuesday, November 23, 2010 10:13 PM
To: Sirano Dhe-Paganon
Cc: xemacs-beta(a)xemacs.org
Subject: RE: simple question regexp-face
Sirano Dhe-Paganon writes:
Basically, in standard lisp format I would like to highlight any text
in
a
buffer defined by a regexp. For example make bold or highlight all
occurrences of " W... " (all four-letter words starting with W)
Yes, I basically understand what you want to do at the UI level. I
can write a Lisp function to do that, but I'd rather not spend the
time because there is a truckload of details about UI we'd have to
thrash out.
But you *also* specify an implementation, which presumably you'd like
to get working. I can't help you with that when none of it makes
sense in my XEmacs. I still don't understand where the function
`set-regexp-face-interactively' comes from, and what are the arguments
"V" and "highlight"? Is that a function you defined? Is
"highlight"
supposed to be a face?
Once again, that function is not present in my XEmacs, at least not
the way I use it. It might be a function in a package I happen not to
use, but interactive functions like that are normally autoloaded so at
least the documentation and arguments are available via C-h f. C-h f
does not know about that function in my installation. With no
documentation, it's really hard to give you any advice at all.
The only thing I can suggest is that face names are symbols, not
strings, so
(set-regexp-face-interactively "V" 'highlight)
might do what you want.
Thank you for your reply.
Sirano
-----Original Message-----
From: xemacs-beta-bounces(a)xemacs.org
[mailto:xemacs-beta-bounces@xemacs.org]
On Behalf Of Stephen J. Turnbull
Sent: Thursday, November 18, 2010 11:25 PM
To: Sirano Dhe-Paganon
Cc: xemacs-beta(a)xemacs.org
Subject: simple question regexp-face
Sirano Dhe-Paganon writes:
> The following, for example, does not work, giving "wrong type arg"
> error:
>
> (defun valine ()
>
> (interactive)
>
> (set-regexp-face-interactively "V" "highlight"))
You'll have to tell us what the arguments of
set-regexp-face-interactively are. I don't have that function in my
XEmacs; if it's in a package, it's not autoloaded, either.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta