[Top][All Lists]

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

Re: Introducing 'unrecognized and 'ignored

From: Stefan Monnier
Subject: Re: Introducing 'unrecognized and 'ignored
Date: Sun, 20 Jan 2008 14:24:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>   (defun vc-process-sentinel (p s)
>     (let ((previous (process-get p 'vc-previous-sentinel)))
> +     (setq mode-line-process
> +           (let ((status (process-status p)))
> +             (unless (eq 'exit status)
> +               (format " (%s)" status))))

This can't be right: we have no idea what buffer we're in at this point.

> +       (setq mode-line-process " (background)")

The problem with this is that it's not necessarily clear that we're
changing mode-line-process in the right buffer either, here.  Also the
habit is to use something like ":run" or ":%s".


reply via email to

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