]> code.delx.au - gnu-emacs/blob - lisp/textmodes/remember.el
Doc, comment, etc updates for increased use of locate-user-emacs-file
[gnu-emacs] / lisp / textmodes / remember.el
1 ;;; remember --- a mode for quickly jotting down things to remember
2
3 ;; Copyright (C) 1999-2001, 2003-2014 Free Software Foundation, Inc.
4
5 ;; Author: John Wiegley <johnw@gnu.org>
6 ;; Created: 29 Mar 1999
7 ;; Version: 2.0
8 ;; Keywords: data memory todo pim
9 ;; URL: http://gna.org/projects/remember-el/
10
11 ;; This file is part of GNU Emacs.
12
13 ;; GNU Emacs is free software: you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation, either version 3 of the License, or
16 ;; (at your option) any later version.
17
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
22
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25
26 ;;; Commentary:
27
28 ;; * The idea
29 ;;
30 ;; Todo lists, schedules, phone databases... everything we use
31 ;; databases for is really just a way to extend the power of our
32 ;; memory. To be able to remember what our conscious mind may not
33 ;; currently have access to.
34 ;;
35 ;; There are many different databases out there -- and good ones --
36 ;; which this mode is not trying to replace. Rather, it's how that
37 ;; data gets there that's the question. Most of the time, we just
38 ;; want to say "Remember so-and-so's phone number, or that I have to
39 ;; buy dinner for the cats tonight." That's the FACT. How it's
40 ;; stored is really the computer's problem. But at this point in
41 ;; time, it's most definitely also the user's problem, and sometimes
42 ;; so laboriously so that people just let data slip, rather than
43 ;; expend the effort to record it.
44 ;;
45 ;; "Remember" is a mode for remembering data. It uses whatever
46 ;; back-end is appropriate to record and correlate the data, but it's
47 ;; main intention is to allow you to express as _little_ structure as
48 ;; possible up front. If you later want to express more powerful
49 ;; relationships between your data, or state assumptions that were at
50 ;; first too implicit to be recognized, you can "study" the data later
51 ;; and rearrange it. But the initial "just remember this" impulse
52 ;; should be as close to simply throwing the data at Emacs as
53 ;; possible.
54 ;;
55 ;; * Implementation
56 ;;
57 ;; Hyperbole, as a data presentation tool, always struck me as being
58 ;; very powerful, but it seemed to require a lot of "front-end" work
59 ;; before that data was really available. The problem with BBDB, or
60 ;; keeping up a Bibl-mode file, is that you have to use different
61 ;; functions to record the data, and it always takes time to stop what
62 ;; you're doing, format the data in the manner expected by that
63 ;; particular data interface, and then resume your work.
64 ;;
65 ;; With "remember", you just hit `M-x remember' (you'd probably want
66 ;; to bind this to an easily accessible keystroke, like C-x M-r), slam
67 ;; in your text however you like, and then hit C-c C-c. It will file
68 ;; the data away for later retrieval, and possibly indexing.
69 ;;
70 ;; Indexing is to data what "studying" is in the real world. What you
71 ;; do when you study (or lucubrate, for some of us) is to realize
72 ;; certain relationships implicit in the data, so that you can make
73 ;; use of those relationships. Expressing that a certain quote you
74 ;; remembered was a religious quote, and that you want the ability to
75 ;; pull up all quotes of a religious nature, is what studying does.
76 ;; This is a more labor intensive task than the original remembering
77 ;; of the data, and it's typical in real life to set aside a special
78 ;; period of time for doing this work.
79 ;;
80 ;; "Remember" works in the same way. When you enter data, either by
81 ;; typing it into a buffer, or using the contents of the selected
82 ;; region, it will store that data -- unindexed, uninterpreted -- in a
83 ;; data pool. It will also try to remember as much context
84 ;; information as possible (any text properties that were set, where
85 ;; you copied it from, when, how, etc). Later, you can walk through
86 ;; your accumulated set of data (both organized, and unorganized) and
87 ;; easily begin moving things around, and making annotations that will
88 ;; express the full meaning of that data, as far as you know it.
89 ;;
90 ;; Obviously this latter stage is more user-interface intensive, and
91 ;; it would be nice if "remember" could do it as elegantly as
92 ;; possible, rather than requiring a billion keystrokes to reorganize
93 ;; your hierarchy. Well, as the future arrives, hopefully experience
94 ;; and user feedback will help to make this as intuitive a tool as
95 ;; possible.
96 ;;
97 ;; * Future Goals
98 ;;
99 ;; This tool hopes to track (and by doing it with as little new code
100 ;; as possible):
101 ;;
102 ;; - The raw data that gets entered
103 ;;
104 ;; - The relationships between that data (either determined
105 ;; implicitly by parsing the input, or explicitly by the user's
106 ;; studying the data).
107 ;;
108 ;; - Revisioning of the data
109 ;;
110 ;; - Where it came from, and any context information that can be
111 ;; programmatically determined.
112 ;;
113 ;; - Allowing particular views of the initially amorphous data pool
114 ;; (ala the Xanadu concept).
115 ;;
116 ;; - Storage of the data in a manner most appropriate to that data,
117 ;; such as keeping address-book type information in BBDB, etc.
118 ;;
119 ;; * Using "remember"
120 ;;
121 ;; As a rough beginning, what I do is to keep my `remember-data-file' in
122 ;; outline-mode format, with a final entry called "* Raw data". Then,
123 ;; at intervals, I can move the data that gets appended there into
124 ;; other places. But certainly this should evolve into an intuitive
125 ;; mechanism for shuffling data off to its appropriate corner of the
126 ;; universe.
127 ;;
128 ;; To map the primary remember function to the keystroke F8, do the
129 ;; following.
130 ;;
131 ;; (autoload 'remember "remember" nil t)
132 ;;
133 ;; (define-key global-map [f8] 'remember)
134 ;;
135 ;; * Feedback
136 ;;
137 ;; If Emacs could become a more intelligent data store, where
138 ;; brainstorming would focus on the IDEAS involved -- rather than the
139 ;; structuring and format of those ideas, or having to stop your
140 ;; current flow of work in order to record them -- it would map much
141 ;; more closely to how the mind (well, at least mine) works, and hence
142 ;; would eliminate that very manual-ness which computers from the very
143 ;; beginning have been championed as being able to reduce.
144 ;;
145 ;; Have you ever noticed that having a laptop to write on doesn't
146 ;; _actually_ increase the amount of quality material that you turn
147 ;; out, in the long run? Perhaps its because the time we save
148 ;; electronically in one way, we're losing electronically in another;
149 ;; the tool should never dominate one's focus. As the mystic
150 ;; Faridu'd-Din `Attar wrote: "Be occupied as little as possible with
151 ;; things of the outer world but much with things of the inner world;
152 ;; then right action will overcome inaction."
153 ;;
154 ;; * Diary integration
155 ;;
156 ;; To use, add the following to your .emacs:
157 ;;
158 ;; ;; This should be before other entries that may return t
159 ;; (add-to-list 'remember-handler-functions 'remember-diary-extract-entries)
160 ;;
161 ;; This module recognizes entries of the form
162 ;;
163 ;; DIARY: ....
164 ;;
165 ;; and puts them in your ~/.diary (or remember-diary-file) together
166 ;; with an annotation. Dates in the form YYYY.MM.DD are converted to
167 ;; YYYY-MM-DD so that diary can understand them.
168 ;;
169 ;; For example:
170 ;;
171 ;; DIARY: 2003.08.12 Sacha's birthday
172 ;;
173 ;; is stored as
174 ;;
175 ;; 2003.08.12 Sacha's birthday
176
177 ;;; History:
178
179 ;;; Code:
180
181 (provide 'remember)
182
183 (defconst remember-version "2.0"
184 "This version of remember.")
185
186 (defgroup remember nil
187 "A mode to remember information."
188 :group 'data)
189
190 ;;; User Variables:
191
192 (defcustom remember-mode-hook nil
193 "Functions run upon entering `remember-mode'."
194 :type 'hook
195 :options '(flyspell-mode turn-on-auto-fill org-remember-apply-template)
196 :group 'remember)
197
198 (defcustom remember-in-new-frame nil
199 "Non-nil means use a separate frame for capturing remember data."
200 :type 'boolean
201 :group 'remember)
202
203 (defcustom remember-register ?R
204 "The register in which the window configuration is stored."
205 :type 'character
206 :group 'remember)
207
208 (defcustom remember-filter-functions nil
209 "Functions run to filter remember data.
210 All functions are run in the remember buffer."
211 :type 'hook
212 :group 'remember)
213
214 (defcustom remember-handler-functions '(remember-append-to-file)
215 "Functions run to process remember data.
216 Each function is called with the current buffer narrowed to what the
217 user wants remembered.
218 If any function returns non-nil, the data is assumed to have been
219 recorded somewhere by that function."
220 :type 'hook
221 :options '(remember-store-in-mailbox
222 remember-append-to-file
223 remember-store-in-files
224 remember-diary-extract-entries
225 org-remember-handler)
226 :group 'remember)
227
228 (defcustom remember-all-handler-functions nil
229 "If non-nil every function in `remember-handler-functions' is called."
230 :type 'boolean
231 :group 'remember)
232
233 ;;; Internal Variables:
234
235 (defvar remember-buffer "*Remember*"
236 "The name of the remember data entry buffer.")
237
238 (defcustom remember-save-after-remembering t
239 "Non-nil means automatically save after remembering."
240 :type 'boolean
241 :group 'remember)
242
243 ;;; User Functions:
244
245 (defcustom remember-annotation-functions '(buffer-file-name)
246 "Hook that returns an annotation to be inserted into the remember buffer."
247 :type 'hook
248 :options '(org-remember-annotation buffer-file-name)
249 :group 'remember)
250
251 (defvar remember-annotation nil
252 "Current annotation.")
253 (defvar remember-initial-contents nil
254 "Initial contents to place into *Remember* buffer.")
255
256 (defcustom remember-before-remember-hook nil
257 "Functions run before switching to the *Remember* buffer."
258 :type 'hook
259 :group 'remember)
260
261 (defcustom remember-run-all-annotation-functions-flag nil
262 "Non-nil means use all annotations returned by `remember-annotation-functions'."
263 :type 'boolean
264 :group 'remember)
265
266 ;;;###autoload
267 (defun remember (&optional initial)
268 "Remember an arbitrary piece of data.
269 INITIAL is the text to initially place in the *Remember* buffer,
270 or nil to bring up a blank *Remember* buffer.
271
272 With a prefix or a visible region, use the region as INITIAL."
273 (interactive
274 (list (when (or current-prefix-arg
275 (and mark-active
276 transient-mark-mode))
277 (buffer-substring (region-beginning) (region-end)))))
278 (funcall (if remember-in-new-frame
279 #'frame-configuration-to-register
280 #'window-configuration-to-register) remember-register)
281 (let* ((annotation
282 (if remember-run-all-annotation-functions-flag
283 (mapconcat 'identity
284 (delq nil
285 (mapcar 'funcall remember-annotation-functions))
286 "\n")
287 (run-hook-with-args-until-success
288 'remember-annotation-functions)))
289 (buf (get-buffer-create remember-buffer)))
290 (run-hooks 'remember-before-remember-hook)
291 (funcall (if remember-in-new-frame
292 #'switch-to-buffer-other-frame
293 #'switch-to-buffer-other-window) buf)
294 (if remember-in-new-frame
295 (set-window-dedicated-p
296 (get-buffer-window (current-buffer) (selected-frame)) t))
297 (setq buffer-offer-save t)
298 (remember-mode)
299 (when (= (point-max) (point-min))
300 (when initial (insert initial))
301 (setq remember-annotation annotation)
302 (when remember-initial-contents (insert remember-initial-contents))
303 (when (and (stringp annotation)
304 (not (equal annotation "")))
305 (insert "\n\n" annotation))
306 (setq remember-initial-contents nil)
307 (goto-char (point-min)))
308 (message "Use C-c C-c to remember the data.")))
309
310 ;;;###autoload
311 (defun remember-other-frame (&optional initial)
312 "Call `remember' in another frame."
313 (interactive
314 (list (when current-prefix-arg
315 (buffer-substring (point) (mark)))))
316 (let ((remember-in-new-frame t))
317 (remember initial)))
318
319 (defsubst remember-mail-date (&optional rfc822-p)
320 "Return a simple date. Nothing fancy."
321 (if rfc822-p
322 (format-time-string "%a, %e %b %Y %T %z" (current-time))
323 (format-time-string "%a %b %e %T %Y" (current-time))))
324
325 (defun remember-buffer-desc ()
326 "Using the first line of the current buffer, create a short description."
327 (buffer-substring (point-min)
328 (save-excursion
329 (goto-char (point-min))
330 (end-of-line)
331 (if (> (- (point) (point-min)) 60)
332 (goto-char (+ (point-min) 60)))
333 (point))))
334
335 ;; Remembering to UNIX mailboxes
336
337 (defcustom remember-mailbox "~/Mail/remember"
338 "The file in which to store remember data as mail."
339 :type 'file
340 :group 'remember)
341
342 (defcustom remember-default-priority "medium"
343 "The default priority for remembered mail messages."
344 :type 'string
345 :group 'remember)
346
347 (defun remember-store-in-mailbox ()
348 "Store remember data as if it were incoming mail.
349 In which case `remember-mailbox' should be the name of the mailbox.
350 Each piece of pseudo-mail created will have an `X-Todo-Priority'
351 field, for the purpose of appropriate splitting."
352 (let ((who (read-string "Who is this item related to? "))
353 (moment (format "%.0f" (float-time)))
354 (desc (remember-buffer-desc))
355 (text (buffer-string)))
356 (with-temp-buffer
357 (insert (format "From %s %s
358 Date: %s
359 From: %s
360 Message-Id: <remember-%s@%s>
361 X-Todo-Priority: %s
362 To: %s <%s>
363 Subject: %s\n\n"
364 (user-login-name)
365 (remember-mail-date)
366 (remember-mail-date t)
367 who
368 moment (system-name)
369 remember-default-priority
370 (user-full-name) user-mail-address
371 desc))
372 (let ((here (point)))
373 (insert text)
374 (unless (bolp)
375 (insert "\n"))
376 (insert "\n")
377 (goto-char here)
378 (while (re-search-forward "^\\(From[: ]\\)" nil t)
379 (replace-match ">\\1")))
380 (append-to-file (point-min) (point-max) remember-mailbox)
381 t)))
382
383 ;; Remembering to plain files
384
385 (defcustom remember-data-file (locate-user-emacs-file "notes" ".notes")
386 "The file in which to store unprocessed data.
387 When set via customize, visited file of the notes buffer (if it
388 exists) might be changed."
389 :version "24.4" ; added locate-user-emacs-file
390 :type 'file
391 :set (lambda (symbol value)
392 (let ((buf (find-buffer-visiting (default-value symbol))))
393 (set-default symbol value)
394 (when (buffer-live-p buf)
395 (with-current-buffer buf
396 (set-visited-file-name
397 (expand-file-name remember-data-file))))))
398 :initialize 'custom-initialize-default
399 :group 'remember)
400
401 (defcustom remember-leader-text "** "
402 "The text used to begin each remember item."
403 :type 'string
404 :group 'remember)
405
406 (defun remember-append-to-file ()
407 "Remember, with description DESC, the given TEXT."
408 (let* ((text (buffer-string))
409 (desc (remember-buffer-desc))
410 (remember-text (concat "\n" remember-leader-text (current-time-string)
411 " (" desc ")\n\n" text
412 (save-excursion (goto-char (point-max))
413 (if (bolp) nil "\n"))))
414 (buf (find-buffer-visiting remember-data-file)))
415 (if buf
416 (with-current-buffer buf
417 (save-excursion
418 (goto-char (point-max))
419 (insert remember-text))
420 (if remember-save-after-remembering (save-buffer)))
421 (append-to-file remember-text nil remember-data-file))))
422
423 (defun remember-region (&optional beg end)
424 "Remember the data from BEG to END.
425 It is called from within the *Remember* buffer to save the text
426 that was entered.
427
428 If BEG and END are nil, the entire buffer will be remembered.
429
430 If you want to remember a region, supply a universal prefix to
431 `remember' instead. For example: \\[universal-argument] \\[remember] RET."
432 ;; Sacha: I have no idea where remember.el gets this context information, but
433 ;; you can just use remember-annotation-functions.
434 (interactive)
435 (let ((b (or beg (min (point) (or (mark) (point-min)))))
436 (e (or end (max (point) (or (mark) (point-max))))))
437 (save-restriction
438 (narrow-to-region b e)
439 (if remember-all-handler-functions
440 (run-hooks 'remember-handler-functions)
441 (run-hook-with-args-until-success 'remember-handler-functions))
442 (remember-destroy))))
443
444 (defcustom remember-data-directory "~/remember"
445 "The directory in which to store remember data as files."
446 :type 'directory
447 :version "24.4"
448 :group 'remember)
449
450 (defcustom remember-directory-file-name-format "%Y-%m-%d_%T-%z"
451 "Format string for the file name in which to store unprocessed data."
452 :type 'string
453 :version "24.4"
454 :group 'remember)
455
456 (defun remember-store-in-files ()
457 "Store remember data in a file in `remember-data-directory'.
458 The file is named after `remember-directory-file-name-format' fed through
459 `format-time-string'."
460 (let ((name (format-time-string
461 remember-directory-file-name-format (current-time)))
462 (text (buffer-string)))
463 (with-temp-buffer
464 (insert text)
465 (write-file (convert-standard-filename
466 (format "%s/%s" remember-data-directory name))))))
467
468 ;;;###autoload
469 (defun remember-clipboard ()
470 "Remember the contents of the current clipboard.
471 Most useful for remembering things from other applications."
472 (interactive)
473 (remember (current-kill 0)))
474
475 (defun remember-finalize ()
476 "Remember the contents of the current buffer."
477 (interactive)
478 (remember-region (point-min) (point-max)))
479
480 ;; Org needs this
481 (define-obsolete-function-alias 'remember-buffer 'remember-finalize "23.1")
482
483 (defun remember-destroy ()
484 "Destroy the current *Remember* buffer."
485 (interactive)
486 (when (equal remember-buffer (buffer-name))
487 (kill-buffer (current-buffer))
488 (jump-to-register remember-register)))
489
490 ;;; Diary integration
491
492 (defcustom remember-diary-file nil
493 "File for extracted diary entries.
494 If this is nil, then `diary-file' will be used instead."
495 :type '(choice (const :tag "diary-file" nil) file)
496 :group 'remember)
497
498 (defun remember-diary-convert-entry (entry)
499 "Translate MSG to an entry readable by diary."
500 (save-match-data
501 (when remember-annotation
502 (setq entry (concat entry " " remember-annotation)))
503 (if (string-match "\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)" entry)
504 (progn
505 ;; For calendar-date-style. This costs us nothing because
506 ;; the call to diary-make-entry below loads diary-lib
507 ;; which requires calendar.
508 (require 'calendar)
509 (replace-match
510 (let ((style (if (boundp 'calendar-date-style)
511 calendar-date-style
512 ;; Don't complain about obsolescence.
513 (if (with-no-warnings european-calendar-style)
514 'european
515 'american))))
516 (cond ((eq style 'european)
517 (concat (match-string 3 entry) "/"
518 (match-string 2 entry) "/"
519 (match-string 1 entry)))
520 ((eq style 'iso)
521 (concat (match-string 1 entry) "-"
522 (match-string 2 entry) "-"
523 (match-string 3 entry)))
524 (t (concat (match-string 2 entry) "/"
525 (match-string 3 entry) "/"
526 (match-string 1 entry)))))
527 t t entry))
528 entry)))
529
530 (autoload 'diary-make-entry "diary-lib")
531
532 ;;;###autoload
533 (defun remember-diary-extract-entries ()
534 "Extract diary entries from the region."
535 (save-excursion
536 (goto-char (point-min))
537 (let (list)
538 (while (re-search-forward "^DIARY:\\s-*\\(.+\\)" nil t)
539 (push (remember-diary-convert-entry (match-string 1)) list))
540 (when list
541 (diary-make-entry (mapconcat 'identity list "\n")
542 nil remember-diary-file))
543 nil))) ;; Continue processing
544
545 ;;; Internal Functions:
546
547 (defvar remember-mode-map
548 (let ((map (make-sparse-keymap)))
549 (define-key map "\C-x\C-s" 'remember-finalize)
550 (define-key map "\C-c\C-c" 'remember-finalize)
551 (define-key map "\C-c\C-k" 'remember-destroy)
552 map)
553 "Keymap used in Remember mode.")
554
555 (define-derived-mode remember-mode indented-text-mode "Remember"
556 "Major mode for output from \\[remember].
557 This buffer is used to collect data that you want to remember.
558 \\<remember-mode-map>
559 Just hit \\[remember-finalize] when you're done entering, and it will file
560 the data away for latter retrieval, and possible indexing.
561
562 \\{remember-mode-map}"
563 (set-keymap-parent remember-mode-map nil))
564
565 ;; Notes buffer showing the notes:
566
567 (defcustom remember-notes-buffer-name "*notes*"
568 "Name of the notes buffer.
569 Setting it to *scratch* will hijack the *scratch* buffer for the
570 purpose of storing notes."
571 :type 'string
572 :version "24.4")
573
574 (defcustom remember-notes-initial-major-mode nil
575 "Major mode to set to notes buffer when it's created.
576 If set to nil will use the same mode as `initial-major-mode'."
577 :type '(choice (const :tag "Same as `initial-major-mode'" nil)
578 (function :tag "Major mode" text-mode))
579 :version "24.4")
580
581 (defcustom remember-notes-bury-on-kill t
582 "Whether to bury notes buffer instead of killing."
583 :type 'boolean
584 :version "24.4")
585
586 (defun remember-notes-save-and-bury-buffer ()
587 "Saves and buries current buffer.
588 Buffer is saved only if `buffer-modified-p' returns non-nil."
589 (interactive)
590 (when (buffer-modified-p)
591 (save-buffer))
592 (bury-buffer))
593
594
595
596 (defvar remember-notes-mode-map
597 (let ((map (make-sparse-keymap)))
598 (define-key map "\C-c\C-c" 'remember-notes-save-and-bury-buffer)
599 map)
600 "Keymap used in remember-notes mode.")
601
602 (define-minor-mode remember-notes-mode
603 "Minor mode for the `remember-notes' buffer."
604 nil nil nil
605 (cond
606 (remember-notes-mode
607 (add-hook 'kill-buffer-query-functions
608 #'remember-notes--kill-buffer-query nil t)
609 (setq buffer-save-without-query t))))
610
611 ;;;###autoload
612 (defun remember-notes (&optional switch-to)
613 "Creates notes buffer and switches to it if called interactively.
614
615 If a notes buffer created by a previous invocation of this
616 function already exist, it will be returned. Otherwise a new
617 buffer will be created whose content will be read from file
618 pointed by `remember-data-file'. If a buffer visiting this file
619 already exist, that buffer will be used instead of creating a new
620 one (see `find-file-noselect' function for more details).
621
622 Name of the created buffer is taken from `remember-notes-buffer-name'
623 variable and if a buffer with that name already exist (but was not
624 created by this function), it will be first killed.
625 \\<remember-notes-mode-map>
626 `remember-notes-mode' is active in the notes buffer which by default
627 contains only one \\[save-and-bury-buffer] binding which saves and
628 buries the buffer.
629
630 Function returns notes buffer. When called interactively,
631 switches to it as well.
632
633 Notes buffer is meant for keeping random notes which you'd like to
634 preserve across Emacs restarts. The notes will be stored in the
635 `remember-data-file'."
636 (interactive "p")
637 (let ((buf (or (find-buffer-visiting remember-data-file)
638 (with-current-buffer (find-file-noselect remember-data-file)
639 (and remember-notes-buffer-name
640 (not (get-buffer remember-notes-buffer-name))
641 (rename-buffer remember-notes-buffer-name))
642 (funcall (or remember-notes-initial-major-mode
643 initial-major-mode))
644 (remember-notes-mode 1)
645 (current-buffer)))))
646 (when switch-to
647 (switch-to-buffer buf))
648 buf))
649
650 (defun remember-notes--kill-buffer-query ()
651 (when (buffer-modified-p)
652 (save-buffer))
653 (if remember-notes-bury-on-kill
654 (bury-buffer)
655 t))
656
657 ;;; remember.el ends here