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

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

bug#18550: eww-history-browse may end up calling eww-restore-history in


From: Ivan Shmakov
Subject: bug#18550: eww-history-browse may end up calling eww-restore-history in an arbitrary buffer
Date: Wed, 19 Nov 2014 11:30:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

 >> So I guess eww should set up the `quit-restore' thing properly.
 >> I'll have a peek.

 > Actually, that doesn't provide a way to do this (rather obvious)
 > thing.

 > Shouldn't there be a way to instruct `quit-window' to go to a
 > specific buffer (if that buffer is still alive)?

        I see no reason to abuse quit-window for what’s essentially
        switching to a buffer to edit one.  That is: the
        eww-restore-history call right after quit-window edits the
        /current/ buffer.  Thus, it indeed makes sense to explicitly use
        set-buffer before that.  (Or to wrap the call in
        with-current-buffer, anyway.)

        Moreover, vc.el already uses a dedicated buffer-local variable
        for a similar purpose, and so does rcirc.el, and perhaps a few
        more modes out there.

-- 
FSF associate member #7257  http://boycottsystemd.org/  … 3013 B6A0 230E 334A





reply via email to

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