unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19880: 24.4; info-look.el latex2e.info setup
@ 2015-02-16  0:31 Kevin Ryde
  2019-08-02 19:26 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2015-02-16  0:31 UTC (permalink / raw)
  To: 19880

If info-look.el is loaded before info-mode has been used then a
latex2e.info file is not noticed for latex-mode help.  For example

    [ have a copy of latex2e.info in /usr/share/info ]
    emacs -Q /tmp/foo.ltx
    \part                  ;; buffer content
    C-h S
    =>
    [message] Cannot access Info node `(latex)Command Index'
    [error}   info-lookup: Not documented as a symbol: \cdots

I hoped it could open latex2e.info, per the conditional in info-look.el

    (if (Info-find-file "latex2e" t)
        ;; From http://home.gna.org/latexrefman
        "(latex2e)Command Index"
      "(latex)Command Index")

I think `Info-find-file' doesn't work until `info-initialize' has run.
Perhaps chuck that or equivalent in there.




In GNU Emacs 24.4.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-12-20 on brahms, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11602901
Configured using:
 `configure --build i586-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --build i586-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars
 --without-gconf --without-gsettings 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro'


-- 
The sigfile lesser-known SI units series:
milliHelen - the amount of beauty required to launch a ship.





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

* bug#19880: 24.4; info-look.el latex2e.info setup
  2015-02-16  0:31 bug#19880: 24.4; info-look.el latex2e.info setup Kevin Ryde
@ 2019-08-02 19:26 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-02 19:26 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: 19880

Kevin Ryde <user42_kevin@yahoo.com.au> writes:

> If info-look.el is loaded before info-mode has been used then a
> latex2e.info file is not noticed for latex-mode help.  For example
>
>     [ have a copy of latex2e.info in /usr/share/info ]
>     emacs -Q /tmp/foo.ltx
>     \part                  ;; buffer content
>     C-h S
>     =>
>     [message] Cannot access Info node `(latex)Command Index'
>     [error}   info-lookup: Not documented as a symbol: \cdots
>
> I hoped it could open latex2e.info, per the conditional in info-look.el
>
>     (if (Info-find-file "latex2e" t)
>         ;; From http://home.gna.org/latexrefman
>         "(latex2e)Command Index"
>       "(latex)Command Index")
>
> I think `Info-find-file' doesn't work until `info-initialize' has run.
> Perhaps chuck that or equivalent in there.

Makes sense, so I've done that on the Emacs trunk.

Looking at `info-initialize', it doesn't look destructive, so it should
be safe to run here.  If this is a mistake, please feel free to revert
this change.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-16  0:31 bug#19880: 24.4; info-look.el latex2e.info setup Kevin Ryde
2019-08-02 19:26 ` Lars Ingebrigtsen

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