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

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

Re: Should delete-window switch to next buffer when there is only one wi


From: Emanuel Berg
Subject: Re: Should delete-window switch to next buffer when there is only one window?
Date: Wed, 15 Jan 2014 22:13:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Thien-Thi Nguyen <ttn@gnu.org> writes:

> (defun begone! () (interactive) (condition-case nil
> (delete-window) (error (bury-buffer))))
> (global-set-key "\C-x0" 'begone!)

That's better Elisp than mine, so let me be a sour
loser by saying that newcomers should note the
"unmodular" one-namespace nature of Emacs, which
explains the elaborate use of prefixes and descriptive
function names... ;)

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

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