emacs-devel
[Top][All Lists]
Advanced

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

Re: buffer-swap-text and multibyteness


From: Stefan Monnier
Subject: Re: buffer-swap-text and multibyteness
Date: Tue, 03 Feb 2009 11:46:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> Yes. we agree (except that switch-to-buffer is a function I would
>> prefer to see disapppear, so better use something else like
>> pop-to-buffer or just set-buffer).

> Is above "Yes" also to this question?

>> > Is the conbination of set-buffer and switch-to-buffer
>> > heavier than two buffer-swap-text?

buffer-swap-text does not meddle with window<->buffer association, so
the equivalent is just `set-buffer'.  I.e. we'd just use

  (with-current-buffer rmail-data-buffer
    ...)

which is a lot lighter weight than a pair of buffer-swap-text.


        Stefan




reply via email to

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