From: Michael Cadilhac <michael.cadilhac-@t-lrde.epita.fr>
Subject: M-x zone and buffer with leading space.
Date: Thu, 06 Oct 2005 17:04:04 +0200 [thread overview]
Message-ID: <87mzlmu1p7.fsf@mahaena.lrde> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1487 bytes --]
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/-@t-/@/ my mail address.
94270 Le Kremlin Bicetre | 06.23.20.31.30 |
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2005-10-06 15:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 15:04 Michael Cadilhac [this message]
2005-10-06 16:28 ` M-x zone and buffer with leading space Stefan Monnier
2005-10-06 16:56 ` Michael Cadilhac
2005-10-11 4:58 ` Stefan Monnier
2005-10-06 18:26 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mzlmu1p7.fsf@mahaena.lrde \
--to=michael.cadilhac-@t-lrde.epita.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).