Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
97f4e87c
Commit
97f4e87c
authored
Jan 13, 2006
by
Romain Francoise
Browse files
(add-change-log-entry, change-log-merge):
Conditionally use `hard-newline'.
parent
e47f89f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/add-log.el
lisp/add-log.el
+9
-5
No files found.
lisp/ChangeLog
View file @
97f4e87c
2006-01-13 Romain Francoise <romain@orebokech.com>
* add-log.el (add-change-log-entry, change-log-merge):
Conditionally use `hard-newline'.
2006-01-13 Martin Rudalics <rudalics@gmx.at> (tiny change)
* wid-edit.el (widget-field-end): If the overlay is no longer
...
...
lisp/add-log.el
View file @
97f4e87c
;;; add-log.el --- change log maintenance commands for Emacs
;; Copyright (C) 1985, 1986, 1988, 1993, 1994, 1997, 1998, 2000, 2002,
;; 2003, 2004, 2005 Free Software Foundation, Inc.
;; 2003, 2004, 2005
, 2006
Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: tools
...
...
@@ -551,7 +551,8 @@ non-nil, otherwise in local time."
(
forward-line
1
)
(
insert
(
nth
(
random
(
length
new-entries
))
new-entries
)
hard-newline
hard-newline
)
(
if
use-hard-newlines
hard-newline
"\n"
)
(
if
use-hard-newlines
hard-newline
"\n"
))
(
forward-line
-1
)))
;; Determine where we should stop searching for a usable
...
...
@@ -584,7 +585,8 @@ non-nil, otherwise in local time."
;; Delete excess empty lines; make just 2.
(
while
(
and
(
not
(
eobp
))
(
looking-at
"^\\s *$"
))
(
delete-region
(
point
)
(
line-beginning-position
2
)))
(
insert
hard-newline
hard-newline
)
(
insert
(
if
use-hard-newlines
hard-newline
"\n"
)
(
if
use-hard-newlines
hard-newline
"\n"
))
(
forward-line
-2
)
(
indent-relative-maybe
))
(
t
...
...
@@ -593,7 +595,9 @@ non-nil, otherwise in local time."
(
forward-line
1
))
(
while
(
and
(
not
(
eobp
))
(
looking-at
"^\\s *$"
))
(
delete-region
(
point
)
(
line-beginning-position
2
)))
(
insert
hard-newline
hard-newline
hard-newline
)
(
insert
(
if
use-hard-newlines
hard-newline
"\n"
)
(
if
use-hard-newlines
hard-newline
"\n"
)
(
if
use-hard-newlines
hard-newline
"\n"
))
(
forward-line
-2
)
(
indent-to
left-margin
)
(
insert
"* "
)
...
...
@@ -1066,7 +1070,7 @@ old-style time formats for entries are supported."
(
and
(
=
?\n
(
char-before
))
(
or
(
<=
(
1-
(
point
))
(
point-min
))
(
=
?\n
(
char-before
(
1-
(
point
)))))))
(
insert
hard-newline
))
(
insert
(
if
use-
hard-newline
s
hard-newline
"\n"
)
))
;; Move to the end of it to terminate outer loop.
(
with-current-buffer
other-buf
(
goto-char
(
point-max
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment