Hi,
This patch makes x-symbol-nomule.el compile when mouse-yank-function
isn't defined, as is the case for XEmacs built with no windows
system.
I have, contrary to my normal routines, applied this locally to the
package smoketest, and 21.5-nomule build succeeds with this
patch.
Please review for commit to package tree.
----------------------------------------------------------------------
Index: ChangeLog
===================================================================
RCS file: /cvsroot/xemacs/XEmacs/packages/xemacs-packages/x-symbol/ChangeLog,v
retrieving revision 1.26
diff -r1.26 ChangeLog
0a1,6
> 2010-08-03 Mats Lidell <matsl(a)xemacs.org>
>
> * lisp/x-symbol-nomule.el (x-symbol-nomule-mouse-yank-function):
> XEmacs build with no window system has not got
> mouse-yank-function.
>
Index: lisp/x-symbol-nomule.el
===================================================================
RCS file: /cvsroot/xemacs/XEmacs/packages/xemacs-packages/x-symbol/lisp/x-symbol-nomule.el,v
retrieving revision 1.4
diff -r1.4 x-symbol-nomule.el
70c70,72
< (defvar x-symbol-nomule-mouse-yank-function mouse-yank-function
---
> (defvar x-symbol-nomule-mouse-yank-function
> (and (boundp 'mouse-yank-function)
> mouse-yank-function)
----------------------------------------------------------------------
Yours
--
%% Mats
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-patches
Ar an triú lá de mí Méan Fómhair, scríobh Mats Lidell:
> >>>>> Norbert Koch <viteno(a)xemacs.org> writes:
>
> Norbert> if I read the smoketest results correctly, this code does not compile
> Norbert> (21.5 MULE output).
>
> Yes and just evaulating this
>
> (define-key po-mode-map [(control c) (control #)]
> 'po-edit-comment-and-ediff)
>
> Give "Invalid read syntax". Should it be
>
> (define-key po-mode-map [(control c) (control ?#)]
> 'po-edit-comment-and-ediff)
The canonical way of representing a key is as a symbol, so (control \#).
Your syntax is fine too.
> Related: I guess there is some place in the manual where one can read
> about such beasts as the #-char. It has some special maeaning for a
> non lisper like me trying to learn, is there a pointer to some docs
> here?
See the expression prefix syntax class in the Lispref,
(Info-goto-node "(lispref.info)Syntax Class Table")
Basically, because # starts the read syntax for structures, quoted
functions, and compiled functions, it needs to be quoted to be treated as a
symbol constituent.
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-patches