Make a user option out of avandu-user

There is no harm in specifying your username in a config file.
This commit is contained in:
Tom Willemsen 2012-08-03 23:37:27 +02:00
parent 030cf8bc05
commit 457242bf26
2 changed files with 17 additions and 13 deletions

View file

@ -105,6 +105,11 @@
:group 'avandu :group 'avandu
:type 'string) :type 'string)
(defcustom avandu-user nil
"Username of your Tiny Tiny RSS account."
:group 'avandu
:type 'string)
;; Variables ;; Variables
(defvar avandu--session-id nil (defvar avandu--session-id nil
"*internal* Session id for avandu.") "*internal* Session id for avandu.")
@ -137,9 +142,6 @@
(defvar avandu-password nil (defvar avandu-password nil
"Password for your Tiny Tiny RSS account.") "Password for your Tiny Tiny RSS account.")
(defvar avandu-user nil
"Username of your Tiny Tiny RSS account.")
;; Macros ;; Macros
(defmacro avandu--next-button-of-type (direction type) (defmacro avandu--next-button-of-type (direction type)
"Go DIRECTION and find the next button of a TYPE." "Go DIRECTION and find the next button of a TYPE."

View file

@ -77,21 +77,23 @@ Now that it is installed, it needs to be configured
Avandu only has one option at this time. Avandu only has one option at this time.
@defopt avandu-tt-rss-api-url @defopt avandu-tt-rss-api-url
This option tells avandu where to look for the api to your Tiny Tiny This option should contain a string. It tells avandu where to look for
RSS instance. This needs to be the complete url to the api, for the api to your Tiny Tiny RSS instance. This needs to be the complete
example @indicateurl{http://tt-rss.org/demo/api/}. Before this option url to the api, for example
is set avandu won't be able to do anything. @indicateurl{http://tt-rss.org/demo/api/}. Before this option is set
avandu won't be able to do anything.
@end defopt
@defopt avandu-user
This option should contain a string. It is the username that is used
to log in to your Tiny Tiny RSS instance. If it is @code{nil} it will
get asked for when avandu tries to connect, and once a succesful
connection has been made it will remember it until you log out.
@end defopt @end defopt
Other than this, it is possible, but unnecessary to set the following Other than this, it is possible, but unnecessary to set the following
variables. variables.
@defvar avandu-user
The username that is used to log in to your Tiny Tiny RSS instance.
This will get asked for when avandu tries to connect, and once a
succesful connection has been made it will remember it.
@end defvar
@defvar avandu-password @defvar avandu-password
The password to use to log in to your Tiny Tiny RSS instance. This The password to use to log in to your Tiny Tiny RSS instance. This
option shouldn't really be set, it is mostly used to remember the option shouldn't really be set, it is mostly used to remember the