help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Why does texinfo-make-menu append trailing whitespace?


From: Alan Mackenzie
Subject: Re: Why does texinfo-make-menu append trailing whitespace?
Date: Wed, 14 May 2003 08:02:35 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Eli Zaretskii <eliz@elta.co.il> wrote on Wed, 14 May 2003 05:30:38 +0300:
>> From: Alan Mackenzie<none@example.invalid>
>> Newsgroups: gnu.emacs.help
>> Date: Mon, 12 May 2003 12:56:54 +0000

>> I'm updating a file.texi using Texinfo-mode.  When I do C-c C-u <ret> to
>> update a menu, the resulting menu has trailing spaces after each item.
>> There wasn't any such trailing spaces beforehand.

> Define ``beforehand''.  Are you saying that a previous version of
> Emacs (which one?) didn't insert those spaces?

Sorry.  I meant the menu didn't have the trailing spaces before I did C-c
C-u <ret>.

>> I don't like this.  Is it a bug, or is there some reason for this
>> trailing space?

> It's a kind of a feature: Emacs assumes that you will wish to add
> some text to each menu item, and inserts those spaces to align the
> beginning of that text.

Ah!  Right!  I understand now.

Perhaps Texinfo mode should put the spaces in when it appends the text,
rather than when it creates the menu item.

> You can use delete-trailing-whitespace to remove easily it if you
> don't want it.

Indeed.  That is what I will do.

Many thanks, Eli.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]