From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: Notes-Mode package problem (was dir(Top) is in French ?!?) Date: Mon, 28 Apr 2014 10:24:39 -0700 Organization: Aioe.org NNTP Server Message-ID: <86bnvl5puw.fsf@gmail.com> References: <86vbtup2ko.fsf@gmail.com> <8661lujcok.fsf@gmail.com> <861twij9ws.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398705930 6194 80.91.229.3 (28 Apr 2014 17:25:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 17:25:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 19:25:23 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WepIx-0006Cb-Mc for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 19:25:23 +0200 Original-Received: from localhost ([::1]:45163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WepIx-00044I-8B for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 13:25:23 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-NNTP-Posting-Host: FBbxX6uxje+SXmxpIOXVag.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (cygwin) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:QNcB16qnk0/i8D8m4lgwYswIABM= Original-Xref: usenet.stanford.edu gnu.emacs.help:205158 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97424 Archived-At: Eli Zaretskii writes: >> From: David Masterson >> Date: Sun, 27 Apr 2014 22:33:07 -0700 >> >> > Found the problem! I installed the notes-mode package and it has a >> > "dir" file that is written in French. ELPA added this package to the >> > front of Info-directory-list and, so, this became the top of Info. >> > >> > Can someone fix Notes-Mode? > > Fixing Notes-Mode will not help you, see my other response in this > thread. Whenever install-info is run, it can install a localized > version of these instructions. > >> By the way, this seems like a fundamental design problem with Info that >> has been inherent in Info as far back as I can remember. I believe I >> ran into this same issue some 15+ years ago. Basically, there should be >> one dir-top file (that can be LANG localized) in Emacs and all other dir >> files should be concatenated onto it. > > No, there could be many dir _files_ all over your system, but when > Info starts, it concatenates them all into a single "dir" _node_, > which includes all of the menus from all of the dir files. > > This is by design. And that is basically what I'm proposing with one key change. The concatenated dir file has two parts: 1. The dir header describing what the Dir is and basics on how to use Info. 2. The concatenated menu list of all the packages from all the dir files. My suggestion is that #1 should be a separate file from the concatenated dir files so that the above issue doesn't happen. I'm not totally sure, but what appears to me to have happened is that the Notes-Mode package was generated with a dir file that had a header that was in French. When I installed the package on my system, it got added to the front of Info-directory-list and, thus, this dir file was the one to which all other dir files was concatenated (with their headers removed). So, my Info dir suddenly became French. By moving #1 to a separate Emacs-specific file, the header can be LANG localized as appropriate. All of the dir files (and processing thereof) remains the same *except* that this (appropriately localized) dir-header is prepended to the resulting dir file by install-info. This also potentially allows a user to enhance the header in his own fashion (if he chooses) with his own dir-header by simply updating (say) Info-dir-header-file. I did a local mod to the dir file in the Notes-Mode package and my Info went back to English. -- David Masterson Programmer At Large