1. When I use ksh-mode in XEmacs 20.4, both types of strings are
displayed in font-lock-string-face:
echo 'This is comment #1'
echo "This is comment #2"
However, in XEmacs 21.x, only the first string is using that face.
2. When I use the little hack (attached below) to get the face of
the 2nd string I get an error:
'wrong type argument: extentp, nil'.
- Can anyone explain problem #1?
- Can anyone suggest a function to display the face at point which
does not fail when there is no extent (I hope I got this right)
Thanks.
;; Subject: Re: What face is `print` in cperl mode?
;; From: Sebastian Kaps <toyland(a)sauerland.de>
;; To: xemacs(a)xemacs.org
;; Date: 8 Jan 1998 19:13:28 +0100
(defun SK::describe-face-at-point ()
"Give the name of the faces at point."
(interactive)
(message (prin1-to-string (extent-face (extent-at (point)
(current-buffer)
'face)))))
--
/* Amir J. Katz mailto:amir@nuke-spam.com */
/* [For e-mail, replace 'nuke-spam' with 'ndsoft'] */
/* EagleEye Control Software, LTD.
http://www.ndsoft.com */
/* 'Is "tired old cliche" one?' (Steven Wright) */