[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
M-x zone and buffer with leading space.
From: |
Michael Cadilhac |
Subject: |
M-x zone and buffer with leading space. |
Date: |
Thu, 06 Oct 2005 17:04:04 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Hi !
I use an IM within emacs which hides its buffer by calling them with
a leading space (Ex: `` *Netsoul Textbox*'').
When a zone is made in a window showing such a buffer, it leaves
with another buffer. Reason is just that zone kills its own buffer,
leaving the next one shown (which can't be one with a leading
space).
I'm wondering if a patch like the following could be applied.
*** zone.el 2005-09-18 14:32:51.000000000 +0200
--- zone-.el 2005-10-06 16:52:59.000000000 +0200
***************
*** 135,140 ****
--- 135,141 ----
(defun zone ()
"Zone out, completely."
(interactive)
+ (save-window-excursion
(let ((f (selected-frame))
(outbuf (get-buffer-create "*zone*"))
(text (buffer-substring (window-start) (window-end)))
***************
*** 187,193 ****
(funcall restore)
(ding)
(message "Zoning...sorry")))
! (when restore (funcall restore)))))
;;;; Zone when idle, or not.
--- 188,194 ----
(funcall restore)
(ding)
(message "Zoning...sorry")))
! (when restore (funcall restore))))))
;;;; Zone when idle, or not.
Thanks guys !
--
Michael Cadilhac, a.k.a. Micha [mika] |
Epita/LRDE promo 2007 | Please note that you should
2 rue de la Convention | 08.70.65.13.14 | s/address@hidden/@/ my mail
address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |
pgpPxLfycOTw6.pgp
Description: PGP signature
- M-x zone and buffer with leading space.,
Michael Cadilhac <=