emacs-devel
[Top][All Lists]
Advanced

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

Re: Fixing numerous `message' bugs..


From: Richard Stallman
Subject: Re: Fixing numerous `message' bugs..
Date: Fri, 07 Dec 2007 12:18:35 -0500

    (message 
            (if foo
                    nil
                    (if bar "abc"
                            (concat "def" filename))))

I think the right fix for that is

   (if foo (message nil)
     (message "%s" (if bar "abc" (concat "def" filename))))

or

   (if foo (message nil)
     (message (if bar "abc" "def%s")
               filename))

I think either of those is clearer than the original code, and would
be cleaner than the fix using the proposed `msg' function.




reply via email to

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