unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RE: generate 3) S-mouse-2: follow link in new window
@ 2007-09-24 17:10 Davis Herring
  2007-09-24 17:22 ` Drew Adams
  2007-09-24 19:27 ` David Kastrup
  0 siblings, 2 replies; 30+ messages in thread
From: Davis Herring @ 2007-09-24 17:10 UTC (permalink / raw)
  To: Drew Adams; +Cc: Juri Linkov, Lennart Borgman, emacs-devel

[Sorry if this arrives twice; my mailer says it didn't send it the first
time.]

> Honestly, how many of you (not new users) keep the default value of
> `mouse-1-click-follows-link'? Outside of Emacs, there is not the same
> need for the normal use of `mouse-1' to set point.  Honestly,
> pre-Emacs 22, did you ever run into a UI conflict between pasting and
> following a link? And just as honestly, with Emacs 22 have you ever
> accidentally followed a link when you just wanted to select a buffer
> or window or move the cursor?

I keep that default value without trouble.  I don't think I have ever
wanted to mouse-paste into a link, but mouse-1 is certainly easier to use
when one's mouse-2 is a wheel.  And I don't think I've ever accidentally
followed a link, because I rarely want to set point in one (they're not
often editable, for instance) and I rarely want to set point with the
mouse anyway (with the exception of long, wrapped buffer lines where some
short sequence of arrows, word motion, and C-a/C-e doesn't do what I
want).  If I did want to set point in a link, the same absurd amount of
conditioning (in such places as web browsers) that produced the mouse-1
suggestion in the first place makes me think twice about just clicking, so
that I remember to hold the button for a bit without any trouble.

(That said, I don't really care one way or the other about what mouse-1
does on a link; it's not exactly hard to, after mouse-1 just sets point,
move a finger by a centimeter and use mouse-2 instead.  I just don't think
that the current default is a bad one.)

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* generate 1) virtual index and 2) other pages for Info; 3) S-mouse-2: follow link in new window
@ 2007-09-23  9:47 Drew Adams
  2007-09-23 12:00 ` generate " Juri Linkov
  2007-09-29 22:43 ` Juri Linkov
  0 siblings, 2 replies; 30+ messages in thread
From: Drew Adams @ 2007-09-23  9:47 UTC (permalink / raw)
  To: Emacs-Devel

1. It would be useful to have an Info command, say bound to `I', that would
do for index lookup what `L' (Info-history) does for chronological
navigation. You would type a regexp, and it would show you a buffer similar
to the `Recently Visited Nodes' buffer of `L'.

That buffer would have a list of all index entries that matched your regexp.
As in the existing manual indexes, it would have both the index entry (a
link) and the name of the node it occurs in. IOW, it would be a virtual
index, based on your input.

This would be useful because you would be able to simultaneously examine
multiple entries that are candidates of interest. Info-index (`i') is great,
but it doesn't give you a good picture of all matching entries, and you can
only visit them in sequence. Completion shows you all candidates that match
your input, but they are all prefix matches, which is not as useful here as
a substring or regexp match.

I know it helps to allow regexp matching and to show all matches in such a
way that you can continue to navigate among them in any order while seeing
them all, because Icicles has something similar and it is very handy.
Instead of generating a fixed buffer with links as described above, Icicles
shows you the matching index entries in *Completions*, but you can continue
to see them there as you visit their locations in the manual.

I'm not suggesting to do what Icicles does, but to do what `Info-history'
does, except with index entries.


2. The same implementation could perhaps be leveraged to let users create
their own virtual Info booklets. They would hit some key in Info nodes of
interest, and links to those nodes would be saved in an `Info-history'-like
buffer for later use. IOW, this would be like being able to save an
`Info-history' buffer. But only nodes that you select would be included in
the collection (whereas `Info-history' lists all nodes you have visited).

Yes, I know that bookmarks offer something similar, but the UI would be a
little different and this would be limited to Info nodes.


3. It would also be helpful to bind `S-mouse-2' in Info to a command that
follows an Info link in a new window. That way, a user could keep the `L' or
the `I' buffer (or a TOC or an index or any other node) open while visiting
its links in another window (or frame, with non-nil pop-up-frames).

I have used this definition:

(defun Info-mouse-follow-nearest-node-new-window (click)
    "Open the link at the mouse pointer in a new window."
    (interactive "e")
    (Info-mouse-follow-nearest-node click t)) ; t no good now

But that particular implementation no longer works, because someone over the
course of Emacs 22 development removed the optional FORK argument to
`Info-follow-nearest-node' and `Info-mouse-follow-nearest-node'. (Why?)
Regardless of how it is implemented, it would be useful. You can do the same
thing by cloning the buffer and then following a link, but it is particulaly
handy to do this with just a mouse click.

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2007-10-01  1:36 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 17:10 generate 3) S-mouse-2: follow link in new window Davis Herring
2007-09-24 17:22 ` Drew Adams
2007-09-24 18:33   ` Davis Herring
2007-09-24 21:30     ` Drew Adams
2007-09-24 19:27 ` David Kastrup
  -- strict thread matches above, loose matches on Subject: below --
2007-09-23  9:47 generate 1) virtual index and 2) other pages for Info; " Drew Adams
2007-09-23 12:00 ` generate " Juri Linkov
2007-09-23 16:44   ` Drew Adams
2007-09-23 19:14     ` Lennart Borgman (gmail)
2007-09-23 20:42       ` Drew Adams
2007-09-24  0:20         ` Johan Bockgård
2007-09-24  1:22         ` Stefan Monnier
2007-09-24  2:01           ` Drew Adams
2007-09-24 18:20             ` Richard Stallman
2007-09-27 21:21               ` Drew Adams
2007-09-27 21:34                 ` David Kastrup
2007-09-27 21:34                 ` Stefan Monnier
2007-09-27 21:41                   ` Drew Adams
2007-09-27 21:53                 ` Drew Adams
2007-09-28 19:04                 ` Richard Stallman
2007-09-28 19:33                   ` Drew Adams
2007-09-28 22:22                     ` David Kastrup
2007-09-30  2:19                       ` Drew Adams
2007-09-30  8:54                         ` David Kastrup
2007-09-30 23:37                           ` Drew Adams
2007-09-30 23:49                             ` David Kastrup
2007-10-01  1:36                           ` Richard Stallman
2007-09-29 22:41     ` Juri Linkov
2007-09-30  2:19       ` Drew Adams
2007-09-29 22:43 ` Juri Linkov
2007-09-30  2:18   ` Drew Adams

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).