unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9669: 24.0.50; `tramp-compat.el' in *Help* when it doesn't belong (?)
@ 2011-10-04 16:55 Drew Adams
  2011-10-04 17:00 ` Drew Adams
  2011-10-04 17:52 ` Stefan Monnier
  0 siblings, 2 replies; 13+ messages in thread
From: Drew Adams @ 2011-10-04 16:55 UTC (permalink / raw)
  To: 9669

I'm seeing this in my own setup.  I don't have the time to track it down
further.  Maybe you can reproduce it for emacs -Q (maybe not).  Maybe
you can understand the problem from the description here (maybe not).
 
I do `C-h f read-char-by-name', and I see this:
 
 read-char-by-name is an alias for `icicle-read-char-by-name' in
 `tramp-compat.el'.
 
I expect to see that, except that the file where
`icicle-read-char-by-name' is defined is `icicles-fn.el', not
`tramp-compat.el'.  No idea where the latter comes from.  A user
clicking the `tramp-compat.el' link will go to that file and have no
clue about either `read-char-by-name' or `icicle-read-char-by-name'!
 
And if a user clicks `icicle-read-char-by-name' s?he sees only this -
still no mention of `icicles-fn.el':
 
 icicle-read-char-by-name is a compiled Lisp function.
 
The defaliasing is done dynamically, and that is perhaps what throws
things off.  In `icicles-mode.el', the defaliasing code is this:
 
(defun icicle-redefine-standard-functions ()
  (when (fboundp 'icicle-completing-read)
    (dolist (fn  icicle-functions-to-redefine)
      (when (fboundp (intern (concat "old-" (symbol-name fn))))
        (defalias fn (intern (concat "icicle-" (symbol-name fn))))))))
 
I can understand that `C-h f' would not be able to figure out which file
the defaliasing was done in.  But what the help seems to say is that
`icicle-read-char-by-name' is defined in `tramp-compat.el', and it is
not (nor is `read-char-by-name').  There is nothing in `tramp-compat.el'
about `read-char'.
 
I would expect that the help could figure out where
`icicle-read-char-by-name' is defined, even if it cannot figure out
where `read-char-by-name' gets defaliased to it.
 
 
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-09-19 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt'
 






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

end of thread, other threads:[~2013-02-14  8:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 16:55 bug#9669: 24.0.50; `tramp-compat.el' in *Help* when it doesn't belong (?) Drew Adams
2011-10-04 17:00 ` Drew Adams
2011-10-04 17:52 ` Stefan Monnier
2011-10-04 17:56   ` Drew Adams
2011-10-04 21:41     ` Stefan Monnier
2011-10-04 22:15       ` Drew Adams
2011-10-05  0:30         ` Stefan Monnier
2011-10-05  1:03           ` Drew Adams
2011-10-05 16:34             ` Stefan Monnier
2011-10-05 17:06               ` Drew Adams
2011-10-05 17:41                 ` Drew Adams
2011-10-18 19:45                   ` Stefan Monnier
2013-02-14  8:32                     ` Glenn Morris

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