From: Richard Stallman <rms@gnu.org>
Cc: juri@jurta.org, emacs-devel@gnu.org
Subject: Re: find-tag-default
Date: Fri, 28 May 2004 21:44:35 -0400 [thread overview]
Message-ID: <E1BTstn-0004jr-0Y@fencepost.gnu.org> (raw)
In-Reply-To: <FDELKNEBLPKKDCEBEJCBKEOPCEAA.drew.adams@oracle.com>
Library thingatpt+.el provides additions and enhancements to thingatpt.el:
1) An optional syntax-table argument is used to determine the bounds.
When have you found that useful?
2) New functions (e.g. symbol-nearest-point) don't require point to be on
the name you want. Here's how "nearest" is defined:
Some kind of extension in this direction could be useful, I guess.
However, I think this looks too far away from point:
The nearest symbol on the same line is returned, if there is any.
Between two symbols equidistant from point on the same line, the
leftmost is considered nearer.
Otherwise, neighboring lines are tried in sequence:
previous, next, 2nd previous, 2nd next, 3rd previous, 3rd next, etc.
This means that between two symbols equidistant from point in
lines above and below it, the symbol in the line above point
(previous Nth) is considered nearer to it.
I think it would be a mistake to use a symbol very far away from point.
The user would think, "Where in the world did that come from?"
It's better to say "there's no default" than grasp at straws to
find one.
So I would recommend a new function along these lines but with
some limits.
next prev parent reply other threads:[~2004-05-29 1:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-13 6:37 find-tag-default Juri Linkov
2004-05-16 13:21 ` find-tag-default Richard Stallman
2004-05-19 8:45 ` find-tag-default Juri Linkov
2004-05-19 18:35 ` find-tag-default Kevin Rodgers
2004-05-19 19:01 ` find-tag-default Richard Stallman
2004-05-20 8:09 ` find-tag-default Juri Linkov
2004-05-20 9:14 ` find-tag-default Juri Linkov
2004-05-21 1:27 ` find-tag-default Richard Stallman
2004-05-21 8:05 ` find-tag-default Juri Linkov
2004-05-22 21:44 ` find-tag-default Richard Stallman
2004-05-24 16:49 ` find-tag-default Drew Adams
2004-05-29 1:44 ` Richard Stallman [this message]
2004-05-29 17:43 ` find-tag-default Drew Adams
2004-05-30 19:41 ` find-tag-default 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=E1BTstn-0004jr-0Y@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.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.