Bug 577335

Summary: opt_gnome-compat incorrectly sets INFOPATH, causing empty Info directory for Emacs
Product: [openSUSE] openSUSE 11.3 Reporter: Henryk Hecht <nvbugs>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Henryk Hecht 2010-02-05 06:41:32 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.0) Gecko/20100115 SUSE/3.6.0-1.2 Firefox/3.6

The symptom is an empty top-level Info directory in Emacs' info viewer (C-h i).  The problem is that, per the documentation for Info-directory-list:
  If nil, meaning not yet initialized, Info uses the environment
  variable INFOPATH to initialize it, or `Info-default-directory-list'
  if there is no INFOPATH variable in the environment, or the
  concatenation of the two if INFOPATH ends with a colon.

opt_gnome-compat.sh sets INFOPATH to just "/opt/gnome/share/info", which usually has somewhere between none and almost none of the info files on the system.  Thus Emacs ignores Info-default-directory-list, and since few people set Info-directory-list themselves, Emacs doesn't find any info files to show.

In my case, I don't actually need opt_gnome-compat at all: it just persists because of some mysterious garbage files in /opt/gnome.  But in general, it should probably make sure to append an ":" to make Emacs happy.  I suppose it's even more correct to leave off the terminal ":" if INFOPATH was already set and didn't have one, and make sure to retain it otherwise, but that seems like an unlikely case.

Reproducible: Always
Comment 1 Henryk Hecht 2010-08-06 08:02:41 UTC
This is still broken in 11.3
Comment 2 Tomáš Chvátal 2017-08-11 13:39:30 UTC
Can't reproduce it openSUSE Tumbleweed/Leap.