GNU bug report logs -
#66752
30.0.50; [PATCH] Add support for 'thing-at-point' to 'bug-reference-mode'
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Wed, 25 Oct 2023 22:35:01 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 66752 <at> debbugs.gnu.org (full text, mbox):
On 11/4/2023 10:31 PM, Eli Zaretskii wrote:
>> Date: Sat, 4 Nov 2023 13:07:38 -0700
>> Cc: 66752 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
>> From: Jim Porter <jporterbugs <at> gmail.com>
>>
>> I don't know if that's a case we want to support; maybe I'm just being
>> overly cautious. (Or maybe there should be - or already is - some
>> utility function that does this for us.) Eli, do you have any thoughts
>> on this part?
>
> I don't see any problems with this. But I added Stefan in case he has
> an opinion.
Another implementation option might be:
1. When activating 'bug-reference-mode', only add
'bug-reference--url-at-point' to 'thing-at-point-provider-alist' if it's
not already there,
2. Do nothing when deactivating 'bug-reference-mode', and
3. Inside bug-reference--url-at-point' always return nil if
'bug-reference-mode' is inactive.
Though I suppose this would use 'cl-pushnew' for (1), which might be
inadvisable given the recent discussion on emacs-devel. (Or we could use
'add-to-list', but its docstring says "please do not abuse it in Elisp
code, where you are usually better off using ‘push’ or ‘cl-pushnew’.")
I don't have a very strong opinion on this part, so I'll do whatever
makes everyone happy here.
This bug report was last modified 1 year and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.