]> code.delx.au - gnu-emacs/blobdiff - doc/misc/remember.texi
Merge from origin/emacs-24
[gnu-emacs] / doc / misc / remember.texi
index d9c11cea424052c60d5609bd81a8bd194cc1d850..ff481b746c1385c1a93277e39a9415b13db74567 100644 (file)
@@ -1,22 +1,22 @@
 \input texinfo @c -*-texinfo-*-
 @c %**start of header
-@setfilename ../../info/remember
+@setfilename ../../info/remember.info
 @settitle Remember Manual
 @syncodeindex fn cp
 @documentencoding UTF-8
 @c %**end of header
 
 @copying
-This manual is for Remember Mode, version 1.9
+This manual is for Remember Mode, version 2.0
 
-Copyright @copyright{} 2001, 2004--2005, 2007--2014
+Copyright @copyright{} 2001, 2004--2005, 2007--2015
 Free Software Foundation, Inc.
 
 @quotation
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.3 or
 any later version published by the Free Software Foundation; with no
-Invariant Sections, with the Front-Cover texts being ``A GNU Manual'',
+Invariant Sections, with the Front-Cover Texts being ``A GNU Manual'',
 and with the Back-Cover Texts as in (a) below.  A copy of the license
 is included in the section entitled ``GNU Free Documentation License''.
 
@@ -54,7 +54,6 @@ modify this GNU manual.''
 @menu
 * Preface::                     About the documentation.
 * Introduction::                What is Remember Mode?
-* Installation::                How to install Remember.
 * Implementation::              How Remember came into existence.
 * Quick Start::                 Get started using Remember.
 * Function Reference::          Interactive functions in remember.el.
@@ -69,6 +68,7 @@ modify this GNU manual.''
 Backends
 
 * Text File::                   Saving to a text file.
+* Separate Text Files::         Saving to separate text files.
 * Diary::                       Saving to a Diary file.
 * Mailbox::                     Saving to a mailbox.
 * Org::                         Saving to an Org Mode file.
@@ -79,7 +79,7 @@ Backends
 @node Preface
 @chapter Preface
 
-This document describes remember-el, which was written by John Wiegley,
+This document describes remember.el, which was written by John Wiegley,
 was once maintained by Sacha Chua, and is now maintained by the Emacs
 developers.
 
@@ -96,8 +96,8 @@ to remember what our conscious mind may not currently have access to.
 There are many different databases out there---and good ones---which
 this mode is not trying to replace.  Rather, it's how that data gets
 there that's the question.  Most of the time, we just want to say
-"Remember so-and-so's phone number, or that I have to buy dinner for the
-cats tonight."  That's the FACT@.  How it's stored is really the
+``Remember so-and-so's phone number, or that I have to buy dinner for the
+cats tonight.''  That's the FACT@.  How it's stored is really the
 computer's problem.  But at this point in time, it's most definitely
 also the user's problem, and sometimes so laboriously so that people
 just let data slip, rather than expend the effort to record it.
@@ -128,18 +128,6 @@ in order to record them---it would map much more closely to how the mind
 manual-ness which computers from the very beginning have been championed
 as being able to reduce.
 
-@node Installation
-@chapter Installation
-
-Installing Remember Mode is as simple as adding the following lines to
-your Emacs configuration file (usually @file{~/.emacs.d/init.el} or
-@file{~/.emacs}).
-
-@lisp
-(add-to-list 'load-path "/path/to/remember")
-(require 'remember)
-@end lisp
-
 @node Implementation
 @chapter Implementation
 
@@ -187,62 +175,58 @@ feedback will help to make this as intuitive a tool as possible.
 @itemize
 
 @item
-Load @file{remember.el}.
-
-@item
-Type @kbd{M-x remember}. The @samp{*Remember*} buffer should be
+Type @kbd{M-x remember}.  The @file{*Remember*} buffer should be
 displayed.
 
 @item
-Type in what you want to remember. The first line will be treated as
+Type in what you want to remember.  The first line will be treated as
 the headline, and the rest of the buffer will contain the body of the
 note.
 
 @item
 Type @kbd{C-c C-c} (@code{remember-finalize}) to save the note and close
-the @samp{*Remember*} buffer.
+the @file{*Remember*} buffer.
 @end itemize
 
 By default, @code{remember-finalize} saves the note in @file{~/emacs.d/notes}.
-You can edit it now to see the remembered and timestamped note. You
-can edit this file however you want. New entries will always be added
+You can edit it now to see the remembered and timestamped note.  You
+can edit this file however you want.  New entries will always be added
 to the end.
 
-To remember a region of text, use the universal prefix. @kbd{C-u M-x
-remember} displays a @samp{*Remember*} buffer with the region as the
+To remember a region of text, use the universal prefix.  @kbd{C-u M-x
+remember} displays a @file{*Remember*} buffer with the region as the
 initial contents.
 
 As a simple beginning, you can start by using the Text File backend,
 keeping your @file{~/.emacs.d/notes} file in outline-mode format, with a final
-entry called @samp{* Raw data}. Remembered data will be added to the
-end of the file. Every so often, you can move the data that gets
+entry called @samp{* Raw data}.  Remembered data will be added to the
+end of the file.  Every so often, you can move the data that gets
 appended there into other files, or reorganize your document.
 
-You can also store remembered data in other backends.
-(@pxref{Backends})
+You can also store remembered data in other backends.  @xref{Backends}.
 
-Here is one way to map the remember functions in your @file{.emacs} to
-very accessible keystrokes facilities using the mode:
+Here is one way to map the remember functions in your init file
+(@pxref{Init File, , The Emacs Initialization File, emacs, GNU Emacs
+Manual}) to very accessible keystrokes facilities using the mode:
 
 @lisp
-(autoload 'remember ``remember'' nil t)
-(autoload 'remember-region ``remember'' nil t)
-
 (define-key global-map (kbd "<f9> r") 'remember)
 (define-key global-map (kbd "<f9> R") 'remember-region)
 @end lisp
 
+@cindex annotation
 By default, remember uses the first annotation returned by
-@code{remember-annotation-functions}. To include all of the annotations,
-set @code{remember-run-all-annotation-functions-flag} to non-nil.
+@code{remember-annotation-functions}.  To include all of the annotations,
+set @code{remember-run-all-annotation-functions-flag} to a
+non-@code{nil} value.
 
 @defopt remember-run-all-annotation-functions-flag
-Non-nil means use all annotations returned by
+Non-@code{nil} means use all annotations returned by
 @code{remember-annotation-functions}.
 @end defopt
 
 You can write custom functions that use a different set of
-remember-annotation-functions. For example:
+remember-annotation-functions.  For example:
 
 @lisp
 (defun my/remember-with-filename ()
@@ -252,17 +236,32 @@ remember-annotation-functions. For example:
   (call-interactively 'remember)))
 @end lisp
 
+@cindex notes
+The @code{remember-notes} command creates a @dfn{notes} buffer that
+visits the file specified by the option @code{remember-data-file}.
+The option @code{remember-notes-buffer-name} specifies the name of the
+buffer.  The buffer uses @code{remember-notes-initial-major-mode} and
+@code{remember-notes-mode} minor mode.  Use @kbd{C-c C-c} to save
+and bury the buffer.  The command @code{save-some-buffers} saves this
+buffer without asking.  This function is a suitable setting for
+@code{initial-buffer-choice}.
+
+
 @node Function Reference
 @chapter Function Reference
 
 @file{remember.el} defines the following interactive functions:
 
-@defun remember initial
-Remember an arbitrary piece of data. With a prefix, it will use the
+@defun remember &optional initial
+Remember an arbitrary piece of data.  With a prefix, it will use the
 region as @var{initial}.
 @end defun
 
-@defun remember-region beg end
+@defun remember-other-frame &optional initial
+Like @code{remember}, but uses a new frame.
+@end defun
+
+@defun remember-region &optional beg end
 If called from within the remember buffer, @var{beg} and @var{end} are
 ignored, and the entire buffer will be remembered.  If called from any
 other buffer, that region, plus any context information specific to
@@ -278,11 +277,36 @@ for remembering things from Netscape or other X Windows applications.
 Remember the contents of the current buffer.
 @end defun
 
+@defun remember-destroy
+Destroy the current remember buffer.
+@end defun
+
 @defun remember-mode
-This enters the major mode for output from @command{remember}.  This
-buffer is used to collect data that you want remember.  Just hit
-@kbd{C-c C-c} when you're done entering, and it will go ahead and file
-the data for latter retrieval, and possible indexing.
+This enters the major mode (@pxref{Major Modes, , Major Modes, emacs,
+GNU Emacs Manual}) for output from @code{remember}.  This buffer is
+used to collect data that you want remember.  Just hit @kbd{C-c C-c}
+when you're done entering, and it will go ahead and file the data for
+latter retrieval, and possible indexing.
+@end defun
+
+@defun remember-notes &optional switch-to
+This returns the notes buffer, creating it if needed, and switches
+to it if called interactively (or if @var{switch-to} is non-@code{nil}).
+The notes buffer visits @code{remember-data-file}, and
+is named @code{remember-notes-buffer-name}.  It uses
+@code{remember-notes-initial-major-mode} and @code{remember-notes-mode}
+minor mode.
+@end defun
+
+@defun remember-notes-mode &optional arg
+This is a minor mode for the notes buffer.  It sets
+@code{buffer-save-without-query} so that @code{save-some-buffers} will
+save the notes buffer without asking.  Use @kbd{C-c C-c} to
+run the command @code{remember-notes-save-and-bury-buffer}.
+@end defun
+
+@defun remember-notes-save-and-bury-buffer
+Save (if it is modified) and bury the current buffer.
 @end defun
 
 @node Keystrokes
@@ -292,14 +316,12 @@ the data for latter retrieval, and possible indexing.
 
 @table @kbd
 
-@item C-c C-c (`remember-finalize')
-Remember the contents of the current buffer.
+@item C-c C-c
+@itemx C-x C-s
+Remember the contents of the current buffer (`remember-finalize').
 
-@item C-c C-k (`remember-destroy')
-Destroy the current *Remember* buffer.
-
-@item C-x C-s (`remember-finalize')
-Remember the contents of the current buffer.
+@item C-c C-k
+Destroy the current @file{*Remember*} buffer (`remember-destroy').
 
 @end table
 
@@ -310,6 +332,7 @@ You can save remembered notes to a variety of backends.
 
 @menu
 * Text File::                   Saving to a text file.
+* Separate Text Files::         Saving to separate text files.
 * Diary::                       Saving to a Diary file.
 * Mailbox::                     Saving to a mailbox.
 * Org::                         Saving to an Org Mode file.
@@ -335,6 +358,30 @@ The file in which to store unprocessed data.
 The text used to begin each remember item.
 @end defopt
 
+
+@node Separate Text Files
+@section Saving to Separate Text Files
+@cindex text files, saving to separate
+
+@subheading Insinuation
+
+@lisp
+(setq remember-handler-functions '(remember-store-in-files))
+@end lisp
+
+@subheading Options
+
+@defopt remember-data-directory
+The directory in which to store remember data as files.
+@end defopt
+
+@defopt remember-directory-file-name-format
+A format string to use for naming files in the remember directory.
+File names are formed by calling @code{format-time-string} at the time
+of saving, using this format string.
+@end defopt
+
+
 @node Diary
 @section Saving to a Diary file
 @cindex diary, integration
@@ -349,7 +396,7 @@ The text used to begin each remember item.
 
 @defopt remember-diary-file
 File for extracted diary entries.
-If this is nil, then @code{diary-file} will be used instead."
+If this is @code{nil}, then @code{diary-file} will be used instead.
 @end defopt
 
 @node Mailbox