bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: po-mode.el: po-check-file-header always inserts header in Emacs 23


From: Bruno Haible
Subject: Re: po-mode.el: po-check-file-header always inserts header in Emacs 23
Date: Thu, 14 Aug 2008 10:37:03 +0200
User-agent: KMail/1.5.4

Hello,

Sven Joachim wrote:
> in current Emacs CVS, loading a PO file always inserts an extra header
> at the beginning of the buffer, even if there is already one.  I tracked
> this misbehavior down to a changed semantic of the previous-line (and
> next-line) function in Emacs, which by default now moves by display
> lines:
> ...
> 
> The statement in the last paragraph is also true in Emacs 22 and 21,

Indeed, yes, you're right.

> so the following patch seems to be safe:
> 
> 2008-08-13  Sven Joachim  <address@hidden>
> 
>       * po-mode.el (po-check-file-header): Use forward-line with
>       negative argument instead of previous-line.
>       (po-add-attribute): Use forward-line instead of next-line.

Thanks! Applied.

I love mails like yours, which explain the problem and provide the fix
already! :-)

Bruno





reply via email to

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