emacs-devel
[Top][All Lists]
Advanced

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

Re: Fixing numerous `message' bugs..


From: Stefan Monnier
Subject: Re: Fixing numerous `message' bugs..
Date: Thu, 06 Dec 2007 10:53:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> It would rather make much more sense to code this fix into a little
> function:

> (defun msg (arg)
>       (if (null arg)
>       (message nil)
>       (message (format "%s" arg))))

Another solution is to change `message' so that if it has only one
argument it behaves as if it had received a "%s" format string.

This will automatically fix all such code.  The only problem with it is
that there is code out there that calls message with a single arg
and expects `message' to dequote "%%" into "%".


        Stefan




reply via email to

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