1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

* lisp/textmodes/remember.el (remember-diary-extract-entries):

Avoid add-to-list.
This commit is contained in:
Stefan Monnier 2013-10-21 10:15:13 -04:00
parent fc54bdd599
commit c6dab55f63
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2013-10-21 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/remember.el (remember-diary-extract-entries):
Avoid add-to-list.
* progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
an instruction.

View File

@ -535,7 +535,7 @@ If this is nil, then `diary-file' will be used instead."
(goto-char (point-min))
(let (list)
(while (re-search-forward "^DIARY:\\s-*\\(.+\\)" nil t)
(add-to-list 'list (remember-diary-convert-entry (match-string 1))))
(push (remember-diary-convert-entry (match-string 1)) list))
(when list
(diary-make-entry (mapconcat 'identity list "\n")
nil remember-diary-file))