help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: canonical verbose?


From: Barry Margolin
Subject: Re: canonical verbose?
Date: Sat, 21 Sep 2013 07:33:11 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Andreas Röhler <address@hidden> wrote:

> Hi,
> 
> writing quite often commands which should give some reports when being 
> successful, like that:
> 
> (defun ar-up-list ()
>    "Returns position reached when successful, nil otherwise"
>    (interactive)
>    (let ((orig (point))
>       (pps (syntax-ppss))
>          erg)
>      (and (nth 8 pps) (goto-char (nth 8 pps)))
>      (ignore-errors (up-list))
>      (and (< orig (point))(setq erg (point)))
>      (when (interactive-p) (message "%s" erg))
>      erg))
> 
> However, binding the message at interactive-usage alone seems not optimal.
> 
> Does Emacs provide some variable setting verbosity?
> 
> TIA,
> 
> Andreas

Another option is to have two functions: one that does all the work, and 
a command that calls the first function and then displays a message.

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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