unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
@ 2011-12-12 17:24 Jari Aalto
  2011-12-15 21:35 ` Juri Linkov
  2019-08-12  0:32 ` Stefan Kangas
  0 siblings, 2 replies; 6+ messages in thread
From: Jari Aalto @ 2011-12-12 17:24 UTC (permalink / raw)
  To: 10280

Package: emacs
Version: 23.3+1-4
Severity: wishlist

ruby.el reads:

    ...
    ;; Keywords: languages ruby
    ;; Version: 1.0

However word "ruby" is not in list returned by M-x finder-list-keywords.
Perhaps finder-list-keywords or ruby.el should be updated.

Jari

-- System Information
Debian Release: wheezy/sid
  APT Prefers testing
  APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8

-- Versions of packages `emacs depends on'.
Depends:
emacs23         23.3+1-4        GNU Emacs is the extensible self-documenting 
emacs23-lucid   23.3+1-4        GNU Emacs is the extensible self-documenting 
emacs23-nox     23.3+1-4        GNU Emacs is the extensible self-documenting 





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

* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
  2011-12-12 17:24 bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby Jari Aalto
@ 2011-12-15 21:35 ` Juri Linkov
  2019-08-12  0:32 ` Stefan Kangas
  1 sibling, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2011-12-15 21:35 UTC (permalink / raw)
  To: Jari Aalto; +Cc: 10280

> ruby.el reads:
>
>     ...
>     ;; Keywords: languages ruby
>     ;; Version: 1.0
>
> However word "ruby" is not in list returned by M-x finder-list-keywords.
> Perhaps finder-list-keywords or ruby.el should be updated.

Free-form user-defined keywords are allowed since the list of keywords is
open-ended.  So this is rather a shortcoming of `finder-list-keywords'
that doesn't yet list all keywords beyond a few of "official" ones.





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

* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
  2011-12-12 17:24 bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby Jari Aalto
  2011-12-15 21:35 ` Juri Linkov
@ 2019-08-12  0:32 ` Stefan Kangas
  2019-08-12  1:03   ` Drew Adams
  2019-08-12 21:27   ` Juri Linkov
  1 sibling, 2 replies; 6+ messages in thread
From: Stefan Kangas @ 2019-08-12  0:32 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 10280, Jari Aalto

Juri Linkov <juri@jurta.org> writes:

>> ruby.el reads:
>>
>>     ...
>>     ;; Keywords: languages ruby
>>     ;; Version: 1.0
>>
>> However word "ruby" is not in list returned by M-x finder-list-keywords.
>> Perhaps finder-list-keywords or ruby.el should be updated.
>
> Free-form user-defined keywords are allowed since the list of keywords is
> open-ended.  So this is rather a shortcoming of `finder-list-keywords'
> that doesn't yet list all keywords beyond a few of "official" ones.

Do we really want to change finder-list-keywords to list all keywords?
(For some definition of "all".)

Wouldn't that make the menu much harder to navigate?

Thanks,
Stefan Kangas





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

* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
  2019-08-12  0:32 ` Stefan Kangas
@ 2019-08-12  1:03   ` Drew Adams
  2019-08-12 21:27   ` Juri Linkov
  1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2019-08-12  1:03 UTC (permalink / raw)
  To: Stefan Kangas, Juri Linkov; +Cc: 10280, Jari Aalto

> >>     ;; Keywords: languages ruby
> >>
> >> However word "ruby" is not in list returned by M-x finder-list-
> >> keywords. Perhaps finder-list-keywords or ruby.el should be updated.
> >
> > Free-form user-defined keywords are allowed since the list of
> > keywords is open-ended.  So this is rather a shortcoming of
> > `finder-list-keywords'

No, it's not a shortcoming.  It's open-ended by design,
AFAIK, and that's good.

> > that doesn't yet list all keywords beyond a few of "official" ones.

And it shouldn't, IMO.  list `finder-known-keywords'
should remain something defined by Emacs.

On the other hand, `finder.el' could be enhanced
to provide such a feature as an _option_.  It
could have a user option whose value is a list
of additional keywords to recognize.

That's the approach we take with Dired guessing
shell-command associations.  We have a non-option
variable, `dired-guess-shell-alist-default', which
is defines the default associations, and we have
a user option, `dired-guess-shell-alist-user',
which is prepended to the default list.

That would let users control the behavior of
`finder-list-keywords'.  After all, that's a
command - it's for users.

> Do we really want to change finder-list-keywords to list all keywords?
> (For some definition of "all".)

No, we don't; that is, I don't.

Field `Keywords' is _not_ just for `finder.el'.
It's for anything a library writer (or user) wants
it to be for.

(I believe it predates `finder.el', but I'm not sure
of that.)

> Wouldn't that make the menu much harder to navigate?

Yes.  If we want to let users choose that, and choose
how much harder (which and how many extra keywords),
that's fine, however.





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

* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
  2019-08-12  0:32 ` Stefan Kangas
  2019-08-12  1:03   ` Drew Adams
@ 2019-08-12 21:27   ` Juri Linkov
  2019-08-13  7:02     ` Stefan Kangas
  1 sibling, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2019-08-12 21:27 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 10280, Jari Aalto

>>>     ;; Keywords: languages ruby
>>>     ;; Version: 1.0
>>>
>>> However word "ruby" is not in list returned by M-x finder-list-keywords.
>>> Perhaps finder-list-keywords or ruby.el should be updated.
>>
>> Free-form user-defined keywords are allowed since the list of keywords is
>> open-ended.  So this is rather a shortcoming of `finder-list-keywords'
>> that doesn't yet list all keywords beyond a few of "official" ones.
>
> Do we really want to change finder-list-keywords to list all keywords?
> (For some definition of "all".)
>
> Wouldn't that make the menu much harder to navigate?

It's possible now to visit (info "(*Finder*) Keyword unknown")
to see all unsupported keywords.  Among other keywords
there is also the "ruby" keyword linking to ruby-mode.
So it seems you could close this report.





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

* bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby
  2019-08-12 21:27   ` Juri Linkov
@ 2019-08-13  7:02     ` Stefan Kangas
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2019-08-13  7:02 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 10280-done, Jari Aalto

Juri Linkov <juri@jurta.org> writes:

> It's possible now to visit (info "(*Finder*) Keyword unknown")
> to see all unsupported keywords.  Among other keywords
> there is also the "ruby" keyword linking to ruby-mode.
> So it seems you could close this report.

Thanks for that; closing.

Best regards,
Stefan Kangas





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

end of thread, other threads:[~2019-08-13  7:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 17:24 bug#10280: ruby-mode.el - Unknown finder.el keyword: ruby Jari Aalto
2011-12-15 21:35 ` Juri Linkov
2019-08-12  0:32 ` Stefan Kangas
2019-08-12  1:03   ` Drew Adams
2019-08-12 21:27   ` Juri Linkov
2019-08-13  7:02     ` Stefan Kangas

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