From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: menu interface for registers Date: Sun, 21 Mar 2004 23:52:46 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040321.235246.260100067.jet@gyve.org> References: <20040318.211042.152527110.jet@gyve.org> 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 1079880969 18517 80.91.224.253 (21 Mar 2004 14:56:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2004 14:56:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 21 15:56:03 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B54Mt-0008No-00 for ; Sun, 21 Mar 2004 15:56:03 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B54Mt-0007Ig-00 for ; Sun, 21 Mar 2004 15:56:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B54Me-0003b0-Qs for emacs-devel@quimby.gnus.org; Sun, 21 Mar 2004 09:55:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B54Kj-0003Ar-T3 for emacs-devel@gnu.org; Sun, 21 Mar 2004 09:53:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B54Jv-0002xV-Al for emacs-devel@gnu.org; Sun, 21 Mar 2004 09:53:30 -0500 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B54Jk-0002vo-SE; Sun, 21 Mar 2004 09:52:49 -0500 Original-Received: from localhost (h220-215-187-110.catv01.itscom.jp [220.215.187.110]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i2LEqg723686; Sun, 21 Mar 2004 23:52:42 +0900 (JST) Original-To: rms@gnu.org In-Reply-To: X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20681 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20681 > First, would you please tell me what this code does? > What is the user interface? All you said is that it somehow > defines menus that relate to registers. That could mean many > different things. My explanation was not enough. My code added "Registers" menu item to global menu-bar or next to Edit=>Bookmarks. (The position where the menu item is added is customizable.) Here after, "Registers" menu item is on the menu-bar like: ================================================================ File Edit Options Buffer Tools Registers Help ================================================================ Consider register ?a has a marker as value. I focus on "Registers" menu item. Let's open the menu: ================ Registers +======================= | Jump to >| +-----------------------+ | Insert String >| +-----------------------+ | Store Point to... | +-----------------------+ | Store String to... | +-----------------------+ If you move the mouse cursor to "Jump to", a sub menu is appeared: ================ Registers +======================= | Jump to =>|+---+ +-----------------------+| a | | Insert String >|+---+ +-----------------------+ | Store Point to... | +-----------------------+ | Store String to... | +-----------------------+ The sub menu contains ?a, because the register ?a has a marker as value. Of course, the point moves to the marker associated with ?a register if you select the menu item. Further more, tooltip about the register's value will appear on the ?a sub menu item like: ================ Registers +======================= | Jump to =>|+---+ +-----------------------+| a | +-------------------+ | Insert String >|+---+ | Buffer: *scratich | +-----------------------+ | Line: 10(20%) | | Store Point to... | +-------------------+ +-----------------------+ | Store String to... | +-----------------------+ You can set a position by "Store Point to..." menu item(This is the same as C-x r SPC). Consider you have stored a position to register ?b. When you choose "Jump to" menu, you will see the sub menu grows like: ================ Registers +======================= | Jump to =>|+---+ +-----------------------+| a | | Insert String >|+---+ +-----------------------+| b | | Store Point to... |+---+ +-----------------------+ | Store String to... | +-----------------------+ The same function for registers having strings value is also available. Tooltips of the sub menu item for registershaving strings value are the strings themselves. Consider registers ?c has a string, "we are referring to freedom": ================ Registers +======================= | Jump to =>| +-----------------------+ | Insert String >|+---+ +-----------------------+| c | +-----------------------------+ | Store Point to... |+---+ | Contents: | +-----------------------+ | we are referring to freedom | | Store String to... | +-----------------------------+ +-----------------------+ You can know the value of registers quickly by pull down menu. If you find something unclear, tell me. Masatake YAMATO