From: Samuel Bronson <naesten@gmail.com>
To: 28267@debbugs.gnu.org
Subject: bug#28267: 26.0.50; Perhaps `semantic-format-tag-custom-list' should use `function-item' types?
Date: Mon, 28 Aug 2017 15:47:13 -0400 [thread overview]
Message-ID: <877exnxyny.fsf@Sam-laptop> (raw)
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
So, I was customizing the `speedbar' group, and I happened to notice
that the entries for `semantic-sb-button-format-tag-function' and
`semantic-sb-info-format-tag-function' offered extremely little in the
way of documentation, and while the docstrings for those variables could
do a better job of describing the contexts to which they are relevant,
the main difficulty is in knowing what the various choices mean.
A quick look in the vicinity of the functions' definitions revealed the
variable `semantic-format-tag-custom-list', which turns out to be where
the :type for those two settings comes from. It is defined as follows:
[-- Attachment #2: Type: application/emacs-lisp, Size: 297 bytes --]
[-- Attachment #3: Type: text/plain, Size: 563 bytes --]
It turns out that the documentation for `radio' types explicitly
mentions what we probably want here:
,----
| ‘(radio ELEMENT-TYPES...)’
| This is similar to ‘choice’, except that the choices are displayed
| using radio buttons rather than a menu. This has the advantage of
| displaying documentation for the choices when applicable and so is
| often a good choice for a choice between constant functions
| (‘function-item’ customization types).
`----
So it looks like we want to change the definition to:
[-- Attachment #4: Type: application/emacs-lisp, Size: 305 bytes --]
[-- Attachment #5: Type: text/plain, Size: 21 bytes --]
Or, in patch form,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #6: Patch --]
[-- Type: text/x-patch, Size: 415 bytes --]
--- a/lisp/cedet/semantic/format.el
+++ b/lisp/cedet/semantic/format.el
@@ -67,7 +67,7 @@
(defvar semantic-format-tag-custom-list
(append '(radio)
- (mapcar (lambda (f) (list 'const f))
+ (mapcar (lambda (f) (list 'function-item f))
semantic-format-tag-functions)
'(function))
"A List used by customizable variables to choose a tag to text function.
Diff finished. Mon Aug 28 15:42:17 2017
next reply other threads:[~2017-08-28 19:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-28 19:47 Samuel Bronson [this message]
2019-07-15 11:42 ` bug#28267: 26.0.50; Perhaps `semantic-format-tag-custom-list' should use `function-item' types? 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=877exnxyny.fsf@Sam-laptop \
--to=naesten@gmail.com \
--cc=28267@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).