From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: pop-up tool-bar Date: Thu, 7 Oct 2004 12:01:01 -0700 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1097175944 10256 80.91.229.6 (7 Oct 2004 19:05:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 19:05:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 07 21:05:32 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFda0-00085m-00 for ; Thu, 07 Oct 2004 21:05:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFdgk-0008CJ-La for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 15:12:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFdgV-0008AD-6x for emacs-devel@gnu.org; Thu, 07 Oct 2004 15:12:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFdgU-00089t-CF for emacs-devel@gnu.org; Thu, 07 Oct 2004 15:12:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFdgU-00089Y-5r for emacs-devel@gnu.org; Thu, 07 Oct 2004 15:12:14 -0400 Original-Received: from [141.146.126.229] (helo=agminet02.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CFdYx-0007Ss-2T for emacs-devel@gnu.org; Thu, 07 Oct 2004 15:04:27 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.191.10]) by agminet02.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i97J14p5017408; Thu, 7 Oct 2004 12:01:04 -0700 Original-Received: from rgmgw1.us.oracle.com (localhost [127.0.0.1]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i97J14UW010799; Thu, 7 Oct 2004 13:01:04 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw1.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i97J12JV010673; Thu, 7 Oct 2004 13:01:04 -0600 Original-To: "Miguel Frasson" , "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28054 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28054 Hi Miguel, I see the pb. Good catch. First, the name "Tool Bar" in the menu-bar. I don't know; I used to feel like you do. Now I figure that since mouseover now highlights the button/menu, there is no problem. Plus, the spacing between menus is generally more than a single space, so it's not too difficult to parse, visually. And ToolBar or Toolbar looks ugly to me. I suppose that if there's a standard convention regarding this I should change the name - is there?. Second, I don't understand your "Maybe..." paragraph. Is that related to the pb you mentioned, or is it a different topic? Are you perhaps suggesting here to disable the Tool Bar menu item, rather than hide it? - If so, yes, that could be done, but I think it's better to get rid of it altogether - at least in the case where someone uses tool-bar-mode (shows tool-bar everywhere all the time). Currently, if you turn off tool-bar-mode, "Tool Bar" appears (assuming tool-bar-here-mode is on); if you turn on tool-bar-mode, "Tool Bar" disappears. That makes sense to me. - If not, if this is a proposed solution to the selection pb, then disable what button? when? Third, in terms of the inadvertent selection pb: I don't have a good solution. How can the tool-bar be hidden after the mouse-up event takes place? The hiding needs to take place in the same command that shows it (and that pushes the next event back onto unread-command-events). The mouse-up event is two events removed from the event that triggers command show-tool-bar-for-one-command: 1) click Tool Bar, 2) mouse-down, 3) mouse-up. The Tool Bar click shows, then hides, the tool-bar, but the hiding doesn't take place until the mouse-down. I tried doing things like (if transient-mark-mode (deactivate-mark)) in the unwind-protect (to not show the inadvertent selection), but that didn't help. There's probably a simple solution I'm not seeing. Anyone? Thanks for the pb report, - Drew -----Original Message----- From: Miguel Frasson When I use the tool-bar-here-mode, and I show the toolbar clicking in the menu item "Tool Bar"[1] , and then if I click in the window, the mouse-down event is read, unactivating the toolbar. The window size changes, and the mouse-up event is in a different position, causing a involuntier selection. Could the toolbar deactivation be postponed to avoid this? Maybe, just disable the button could give a better feedback (that this mechanism is on) [1] It could be "ToolBar" because maybe it is not nice to have spaces in top menu itens (top menu itens are separated by space).