all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Cc: emacs-devel@gnu.org
Subject: Re: menu interface for registers
Date: Sun, 21 Mar 2004 23:52:46 +0900 (JST)	[thread overview]
Message-ID: <20040321.235246.260100067.jet@gyve.org> (raw)
In-Reply-To: <E1B4YQ1-0007hd-Mg@fencepost.gnu.org>

> 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

  reply	other threads:[~2004-03-21 14:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-18 12:10 menu interface for registers Masatake YAMATO
2004-03-20  4:49 ` Richard Stallman
2004-03-21 14:52   ` Masatake YAMATO [this message]
2004-03-22  5:25     ` Richard Stallman

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=20040321.235246.260100067.jet@gyve.org \
    --to=jet@gyve.org \
    --cc=emacs-devel@gnu.org \
    /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.