unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Masterson <dsmasterson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Notes-Mode package problem (was dir(Top) is in French ?!?)
Date: Mon, 28 Apr 2014 10:24:39 -0700	[thread overview]
Message-ID: <86bnvl5puw.fsf@gmail.com> (raw)
In-Reply-To: mailman.182.1398698489.1147.help-gnu-emacs@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Masterson <dsmasterson@gmail.com>
>> 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


  parent reply	other threads:[~2014-04-28 17:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-28  3:15 dir(Top) is in French ?!? David Masterson
2014-04-28  4:33 ` Notes-Mode package problem (was dir(Top) is in French ?!?) David Masterson
2014-04-28  5:33   ` David Masterson
2014-04-28 15:21     ` Eli Zaretskii
     [not found]     ` <mailman.182.1398698489.1147.help-gnu-emacs@gnu.org>
2014-04-28 17:24       ` David Masterson [this message]
2014-04-28 17:47         ` Eli Zaretskii
     [not found]         ` <mailman.201.1398707246.1147.help-gnu-emacs@gnu.org>
2014-04-28 18:19           ` David Masterson
2014-04-28 18:47             ` Eli Zaretskii
     [not found]             ` <mailman.211.1398710871.1147.help-gnu-emacs@gnu.org>
2014-04-29  5:14               ` David Masterson
2014-04-28 15:18 ` dir(Top) is in French ?!? Eli Zaretskii
     [not found] ` <mailman.181.1398698332.1147.help-gnu-emacs@gnu.org>
2014-04-28 17:32   ` David Masterson
2014-04-28 17:49     ` Eli Zaretskii
     [not found]     ` <mailman.202.1398707393.1147.help-gnu-emacs@gnu.org>
2014-04-28 18:29       ` David Masterson
2014-04-28 18:50         ` Eli Zaretskii
2014-04-29 12:03           ` Stefan Monnier
2014-04-29 14:06             ` Eli Zaretskii
     [not found]             ` <mailman.272.1398780373.1147.help-gnu-emacs@gnu.org>
2014-04-29 22:02               ` David Masterson
2014-04-30  2:56                 ` Eli Zaretskii
2014-04-29 22:21               ` Stefan Monnier
2014-04-30  2:58                 ` Eli Zaretskii
2014-04-30 12:20                   ` Stefan Monnier
     [not found]                   ` <mailman.369.1398860725.1147.help-gnu-emacs@gnu.org>
2014-05-01 13:30                     ` Stefan Monnier
2014-05-01 15:14                       ` Eli Zaretskii
     [not found]                       ` <mailman.444.1398957286.1147.help-gnu-emacs@gnu.org>
2014-05-01 15:21                         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86bnvl5puw.fsf@gmail.com \
    --to=dsmasterson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).