From: "Drew Adams" <drew.adams@oracle.com>
To: 9454@debbugs.gnu.org
Subject: bug#9454: 24.0.50; thingatpt.el should be updated to respect field boundaries
Date: Tue, 6 Sep 2011 16:14:57 -0700 [thread overview]
Message-ID: <44787C2CD18A4D45913B6FD72C387219@us.oracle.com> (raw)
I'm no expert on fields, to put it mildly. But my impression is that
thing-at-point functions should not cross field boundaries.
I ran into this using a thing-at-point function (actually, a
thing-near-point function) in the minibuffer. Now that (forward-line 0)
takes you across the field boundary and into the prompt field, I ended
up with "Text is read-only" errors.
(And just why is it an improvement to have two fields here? What was
wrong with the (simple) situation before?)
To fix this I ended up splattering my own thing-at-point code with
`constrain-to-field' calls. Butt ugly, but unless I'm missing something
(quite possible), unavoidable.
Anyway, this is a heads-up that you might want to take a look at
thingatpt.el and DTRT wrt field boudaries. FWIW, my own code is here:
http://www.emacswiki.org/emacs/download/thingatpt%2b.el. Among other
things, it contains fixes for Emacs bugs #8667, #8628, and #9300 (fixes
already communicated, but still not applied to vanilla Emacs).
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2011-09-05 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
next reply other threads:[~2011-09-06 23:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-06 23:14 Drew Adams [this message]
2019-08-20 2:47 ` bug#9454: 24.0.50; thingatpt.el should be updated to respect field boundaries Lars Ingebrigtsen
2019-08-20 15:26 ` Drew Adams
2019-08-21 20:11 ` Lars Ingebrigtsen
2021-08-25 16:05 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44787C2CD18A4D45913B6FD72C387219@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=9454@debbugs.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 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).