all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "Eric M. Ludlam" <eric@siege-engine.com>
Cc: Angelo.Graziosi@roma1.infn.it, emacs-devel@gnu.org
Subject: Re: Re[2]: Strange behaviour after Show/Hide Speedbar in Emacs 22.1
Date: Tue, 26 Jun 2007 00:46:52 +0200	[thread overview]
Message-ID: <f7ccd24b0706251546i6ca2ac7dl271dc3f99ef3b1cf@mail.gmail.com> (raw)
In-Reply-To: <200706251317.l5PDH7J1011619@projectile.siege-engine.com>

On 6/25/07, Eric M. Ludlam <eric@siege-engine.com> wrote:

>   I suspect your patch might leave a bunch of invisible frames about,
> but it's been a while since I've been in that code so I'm not sure.

At the very least, this patch should be committed. There's no point in
trying to delete-frame nil.

OTOH, I confess I don't entirely understand the way speedbar handles
frames. For example:

 emacs -q
 M-x speedbar-frame-mode
 "q" on the speedbar frame
 M-: (frame-list)    => the speedbar frame still exists

but

 emacs -q
 C-x 5 2
 M-x speedbar-frame-mode
 "q" on the speedbar frame
 M-: (frame-list)   => the speedbar frame does not exist

??

             Juanma


Index: lisp/speedbar.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/speedbar.el,v
retrieving revision 1.87
diff -u -2 -r1.87 speedbar.el
--- lisp/speedbar.el	19 Feb 2007 13:37:23 -0000	1.87
+++ lisp/speedbar.el	25 Jun 2007 22:39:43 -0000
@@ -1054,7 +1054,8 @@
 If the deleted frame is the frame SPEEDBAR is attached to,
 we need to delete speedbar also."
-  (let ((frame-to-be-deleted (car (car (cdr e)))))
-    (if (eq frame-to-be-deleted dframe-attached-frame)
-	(delete-frame speedbar-frame)))
+  (when speedbar-frame
+    (let ((frame-to-be-deleted (car (car (cdr e)))))
+      (if (eq frame-to-be-deleted dframe-attached-frame)
+	  (delete-frame speedbar-frame))))
   )

      parent reply	other threads:[~2007-06-25 22:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25  9:51 Strange behaviour after Show/Hide Speedbar in Emacs 22.1 Angelo Graziosi
2007-06-25 10:29 ` Juanma Barranquero
2007-06-25 10:34   ` Leo
2007-06-25 10:49     ` Juanma Barranquero
2007-06-25 10:49     ` Nick Roberts
2007-06-25 10:58       ` Leo
2007-06-25 11:30         ` Nick Roberts
2007-06-25 13:22       ` Vinicius Jose Latorre
2007-06-25 13:10     ` Re[2]: " Eric M. Ludlam
2007-06-25 13:17   ` Eric M. Ludlam
2007-06-25 13:45     ` Angelo Graziosi
2007-06-25 15:57       ` Re[4]: " Eric M. Ludlam
2007-06-25 18:17         ` Juanma Barranquero
2007-06-25 20:43         ` Angelo Graziosi
2007-06-25 22:46     ` Juanma Barranquero [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0706251546i6ca2ac7dl271dc3f99ef3b1cf@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=Angelo.Graziosi@roma1.infn.it \
    --cc=emacs-devel@gnu.org \
    --cc=eric@siege-engine.com \
    /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 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.