[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778799: gcc-doc: gcc.info not viewable in Emacs



On Fri, May 01, 2015 at 02:49:59AM -0400, GUO Yixuan wrote:
> Hi,
> 
> Thanks for your report.
> 
> On Fri, Feb 20, 2015 at 12:09:53PM +1100, Kevin Ryde wrote:
> > Package: gcc-doc
> > Version: 5:4.9.1-3
> > Severity: normal
> > File: /usr/share/info/gcc.info.gz
> > 
> > With recent emacs-lucid 24.4+1-4.1, opening the gcc.info file
> > 
> >     C-h i
> >     g
> >     (gcc) Ret
> >     => No such node or anchor: Top
> > 
> > In see this empty type gcc.info is accepted by the standalone info
> > program, but it doesn't seem to work in emacs.
> 
> I've tried the same input sequence with info, and it doesn't work,
> either, with an error message "Cannot find node `Top'." So info and the
> info reader inside emacs have the same behavior here.
> 
> The reason why I've switched to direntry stub instead of symlinks for
> /usr/share/info/gcc.info.gz:
> 
>                    $ info gcc 
> With symlinks       
>                    shows "10 'gcov'--a Test Coverage Program" in
>                    gcc-4.8.info, while gcc-4.9 is the symlinked
>                    default version.
> With direntry stub
>                    shows the top node in gcc-4.9.info.
> 
> The drawback is that with direntry stubs, there's no "(gcc)" top nodes,
> only "(gcc-4.9)" top nodes, etc. However, it doesn't seem to be a good
> idea to revert to symlinks. Any patches are welcome.


Here is a (somehow awkward) patch. Feel free to try and see if it works.

http://anonscm.debian.org/cgit/users/yixuan-guest/gcc-doc-defaults.git/commit/?h=both&id=fb0641573231c3d50822d03ff003a6f861666346

Regards,
Yixuan


Reply to: