all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: kill-buffer and delete-frame
       [not found] <%shb9.114513$aA.25912@sccrnsc02>
@ 2002-08-29 22:13 ` Sandip Chitale
       [not found] ` <bKxb9.23951$GK2.10122@news02.bloor.is.net.cable.rogers.com>
  1 sibling, 0 replies; 2+ messages in thread
From: Sandip Chitale @ 2002-08-29 22:13 UTC (permalink / raw)


I think doing -

    (set-window-dedicated-p (selected-window) t)

as soon as the file is opened should do what you want.

Here is the docstring for the defun -

set-window-dedicated-p is a built-in function.
(set-window-dedicated-p WINDOW ARG)

Control whether WINDOW is dedicated to the buffer it displays.
If it is dedicated, Emacs will not automatically change
which buffer appears in it.
The second argument is the new value for the dedication flag;
non-nil means yes.


"tcp" <txt8888@yahoo.com> wrote in message news:<%shb9.114513$aA.25912@sccrnsc02>...
> hi all,
> 
>   I normally open file in a new frame. I would like to know how can I
>   kill the file and the frame at the same instead of doing:
> 
>     (kill-buffer BUFFER)
>     (delete-frame)
> 
>   Thanks!
> 
> ---
> tcp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: kill-buffer and delete-frame
       [not found] ` <bKxb9.23951$GK2.10122@news02.bloor.is.net.cable.rogers.com>
@ 2002-08-31  3:17   ` tcp
  0 siblings, 0 replies; 2+ messages in thread
From: tcp @ 2002-08-31  3:17 UTC (permalink / raw)


Thanks all!

"Le Wang" <lewang(at@)yahoo.com> wrote in message
news:bKxb9.23951$GK2.10122@news02.bloor.is.net.cable.rogers.com...
> tcp wrote:
>
> > hi all,
> >
> >   I normally open file in a new frame. I would like to know how can I
> >   kill the file and the frame at the same instead of doing:
> >
> >     (kill-buffer BUFFER)
> >     (delete-frame)
> >
> >   Thanks!
>
> Make your own function, bind it to a key for easy access:
>
> (defun kill-this-buffer-and-frame ()
>   (interactive)
>   (kill-this-buffer)
>   (delete-frame))
>
> (global-set-key [(f2)] 'kill-this-buffer-and-frame)
>
> HTH.
>
> --
> Le

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-31  3:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <%shb9.114513$aA.25912@sccrnsc02>
2002-08-29 22:13 ` kill-buffer and delete-frame Sandip Chitale
     [not found] ` <bKxb9.23951$GK2.10122@news02.bloor.is.net.cable.rogers.com>
2002-08-31  3:17   ` tcp

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.