emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing.el again


From: Vinicius Jose Latorre
Subject: Re: printing.el again
Date: Mon, 15 Nov 2004 18:03:01 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927

> > Hummm, indeed, but this:
>
> >  (let (...
> >        (pr-:help (if (eq ps-print-emacs-type 'emacs)
> >                   #'(lambda (text) (list :help text))  ; GNU Emacs
> >                 'ignore)))                  ; XEmacs
> >   ......
> >   ,@(funcall pr-:help ...)
>
> > Will do the work and pr-:help will be local.
>
> Yes, that's another solution.  I find CL's `flet' much more elegant, tho.

Ok, but a very long time ago there was a recommendation to do not use cl
package when writing code in Emacs Lisp.

Is that recommendation no more valid?


> BTW, if you use (featurep 'xemacs) for the test, Emacs-21 will optimize the
> test away (since the resulting elc file can't be run on XEmacs anyway).
> Here it doesn't really matter, but it is sometimes very handy since it
> ends up getting rid of spurious warnings about XEmacs-specific code.

Well, so:

A) (cond ((eq ps-print-emacs-type 'xemacs) ...)
        (t ...))

B) (cond ((featurep 'xemacs) ...)
        (t ...))

Are you saying that A and B above are treated differently by the
byte-compiler??


Vinicius





reply via email to

[Prev in Thread] Current Thread [Next in Thread]