GNU bug report logs - #8367
log-edit-insert-changelog+non standard add-log-time-format

Previous Next

Package: emacs;

Reported by: Uwe Brauer <oub <at> mat.ucm.es>

Date: Mon, 28 Mar 2011 16:11:02 UTC

Severity: minor

Tags: notabug

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8367 in the body.
You can then email your comments to 8367 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8367; Package emacs. (Mon, 28 Mar 2011 16:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Uwe Brauer <oub <at> mat.ucm.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 28 Mar 2011 16:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub <at> mat.ucm.es>
To: bug-gnu-emacs <at> gnu.org
Subject: log-edit-insert-changelog+non standard add-log-time-format
Date: Mon, 28 Mar 2011 17:25:50 +0200
Hello 

I have set 
 'add-log-time-format to a function called 

my-insert-log-time

which is defined as:
(defun my-insert-log-time ()
  (interactive)
  (insert 
   (format-time-string "%Y-%m-%d_%H:%M")))

the resulting entries in the Changlog file log like
2011-03-28_17:22  Uwe Brauer  <oub <at> mat.ucm.es>

	* emacs_keys.el: 

the problem is when I call vc-next-action and in the vc-log file 
the function

log-edit-insert-changelog

then after finishing the process and returning to the Changelog file the entry looks 
like 

2011-03-28_16:192011-03-28_16:192011-03-26  Uwe Brauer  <oub <at> mat.ucm.es>

	* emacs_keys.el: 

which is awful. I presume the error lies in my-insert-log-time
but how shall I change it?

Uwe Brauer


In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2010-03-26 on palmer, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Log-Edit

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
<return> C-x o <end> <home> C-x o C-x 1 <home> C-c 
C-c y e s <return> i C-x o <end> <home> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> C-x h C-w C-y <down-mouse-1> <mouse-1> <home> 
C-> <down-mouse-1> <mouse-1> <S-f3> C-x C-q C-x C-q 
C-x v v y C-x 1 <home> <end> C-x C-f <M-backspace> 
<M-backspace> <M-backspace> <return> g <up> <up> <up> 
<up> <up> <up> f <home> <S-f1> <S-f1> <S-f1> C-SPC 
<down> <down> <down> C-w C-y C-x C-f C h - b u g <return> 
C-y C-x C-s <S-f3> <S-f3> y e s <return> g <down> <down> 
<down> <down> <down> f C-x v v SPC C-x C-s C-x v v 
C-h k C-c C-a <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <f7> <C-end> C-g <home> 
<help-echo> <down-mouse-1> <mouse-movement> <mouse-movement> 
<mouse-1> M-x r e p o r t SPC e m <tab> <return>

Recent messages:
Checking out /home/oub/emacs/emacs_keys.el...done
Saving file /home/oub/emacs/emacs_keys.el...
Wrote /home/oub/emacs/emacs_keys.el
Mark set
Press C-c C-c when you are done editing.
Enter a change comment.  Type C-c C-c when done
Type C-x 4 C-o RET to restore the other window.  
call-interactively: Beginning of buffer
Quit
Mark set





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8367; Package emacs. (Mon, 28 Mar 2011 21:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 8367 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Uwe Brauer <oub <at> mat.ucm.es>
Cc: 8367 <at> debbugs.gnu.org
Subject: Re: bug#8367: log-edit-insert-changelog+non standard
	add-log-time-format
Date: Mon, 28 Mar 2011 17:33:52 -0400
Uwe Brauer wrote:

> I have set 
>  'add-log-time-format to a function called 
>
> my-insert-log-time
>
> which is defined as:
> (defun my-insert-log-time ()
>   (interactive)
>   (insert 
>    (format-time-string "%Y-%m-%d_%H:%M")))


The doc of add-log-time-format says current-time-string is an option, so
your function should behave like current-time-string. Ie, it should just
return a value, not insert it.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8367; Package emacs. (Mon, 28 Mar 2011 22:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 8367 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub <at> mat.ucm.es>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8367 <at> debbugs.gnu.org, Uwe Brauer <uwe_brauer <at> mat.ucm.es>
Subject: Re: bug#8367: log-edit-insert-changelog+non standard
	add-log-time-format
Date: Tue, 29 Mar 2011 00:07:43 +0200
Glenn Morris wrote:
> Uwe Brauer wrote:
>
>> I have set
>>   'add-log-time-format to a function called
>>
>> my-insert-log-time
>>
>> which is defined as:
>> (defun my-insert-log-time ()
>>    (interactive)
>>    (insert
>>     (format-time-string "%Y-%m-%d_%H:%M")))
>
>
> The doc of add-log-time-format says current-time-string is an option, so
> your function should behave like current-time-string. Ie, it should just
> return a value, not insert it.
thanks you are right! what a silly mistake!




Added tag(s) notabug. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 14 Jul 2011 19:18:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 8367 <at> debbugs.gnu.org and Uwe Brauer <oub <at> mat.ucm.es> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 14 Jul 2011 19:18:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Aug 2011 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.