[gnus git] branch master updated: n0-13-100-gfd65774 =1= Update docs to explain that the :save-function will only run the first time.
Ted Zlatanov <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via fd6577451ba744dcd1323bb37c979c22242f9738 (commit)
from 57a4bf164075fe2c36b4a311a3199229ac29a460 (commit)
- Log -----------------------------------------------------------------
commit fd6577451ba744dcd1323bb37c979c22242f9738
Author: Ted Zlatanov <[email protected]>
Date: Sat Mar 12 13:03:55 2011 -0600
Update docs to explain that the :save-function will only run the first time.
* auth.texi (Help for developers): Update docs to explain that the
:save-function will only run the first time.
diff --git a/texi/ChangeLog b/texi/ChangeLog
index 76bc116..2c41fd2 100644
--- a/texi/ChangeLog
+++ b/texi/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-12 Teodor Zlatanov <[email protected]>
+
+ * auth.texi (Help for developers): Update docs to explain that the
+ :save-function will only run the first time.
+
2011-03-08 Teodor Zlatanov <[email protected]>
* auth.texi (Help for developers): Show example of using
diff --git a/texi/auth.texi b/texi/auth.texi
index 2f2c9cc..fbcbe8c 100644
--- a/texi/auth.texi
+++ b/texi/auth.texi
@@ -289,11 +289,21 @@ Later, after a successful login, @code{nnimal.el} calls the
(funcall (nth 2 credentials)))
@end example
-Which will work whether the @code{:save-function} was provided or not.
+This will work whether the @code{:save-function} was provided or not.
@code{:save-function} will be provided only when a new entry was
created, so this effectively says ``after a successful login, save the
authentication information we just used, if it was newly created.''
+After the first time it's called, the @code{:save-function} will not
+run again (but it will log something if you have set
+@code{auth-source-debug} to @code{'trivia}). This is so it won't ask
+the same question again, which is annoying. This is so it won't ask
+the same question again, which is annoying. This is so it won't ask
+the same question again, which is annoying.
+
+So the responsibility of the API user that specified @code{:create t}
+is to call the @code{:save-function} if it's provided.
+
@defun auth-source-delete SPEC
TODO: how to include docstring?
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
texi/ChangeLog | 5 +++++
texi/auth.texi | 12 +++++++++++-
2 files changed, 16 insertions(+), 1 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project