emacs-devel
[Top][All Lists]
Advanced

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

(setq add-log-keep-changes-together nil) but always a new line.


From: Uwe Brauer
Subject: (setq add-log-keep-changes-together nil) but always a new line.
Date: Sat, 13 Jul 2019 16:51:54 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)


Hi 

I always have set add-log-keep-changes-together  to nil.

When I set  add-log-always-start-new-record to t.

My changelog file looks like 

,----
| 2019-06-28  Uwe Brauer  <address@hidden>
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 521 anothter
|       reformulation concerning issue 3.
| 
| 2019-06-28  Uwe Brauer  <address@hidden>
| 
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 520 typo
| 
| 2019-06-28  Uwe Brauer  <address@hidden>
| 
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 519 rewrite
|       paragraph see issue 3, which is thereby  closed.
`----

Which I don't like. 
So I set add-log-always-start-new-record to nil.

And I end up with 


,----
| 2019-06-28  Uwe Brauer  <address@hidden>
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 521 anothter
|       reformulation concerning issue 3. Typo 
|       rewrite paragraph see issue 3, which is thereby  closed.
`----

Which I also don't like because I added three entries and the one of the
same file are put together although  I have set 
(setq add-log-keep-changes-together nil)

What I would like to have is 

,----
| 2019-06-28  Uwe Brauer  <address@hidden>
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 521 anothter
|       reformulation concerning issue 3.
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 520 typo
| 
| 
|       * sec0-intro.tex (section{Introduction} {} {}): 519 rewrite
|       paragraph see issue 3, which is thereby  closed.
`----

So what I would really have is

(defun add-change-log-entry-other-window (&optional whoami file-name)
  "Find change log file in other window and add entry and item.
This is just like `add-change-log-entry' except that it displays
the change log file in another window."
  (interactive (if current-prefix-arg
                   (list current-prefix-arg
                         (prompt-for-change-log-name))))
  (add-change-log-entry whoami file-name t t)) ; I add here another t,  
                                               ; because I always want
                                               ; a new entry on new line 

Could that behavior be optionally added say via a new variable or via
customize.

Thanks and regards

Uwe Brauer 





reply via email to

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