diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-08-28 22:29:03 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2021-08-29 20:30:29 +0300 |
| commit | 411b95acd7c7b310be101b756c9727b021d36ce8 (patch) | |
| tree | 017984c027d9373eb7141d31d3d22b96bee3aff4 /mu4e/mu4e-vars.el | |
| parent | 3cd127d8ae9214f20375ecdca6c2622b033f3eb8 (diff) | |
vars: refactor variables
Remove some variables from mu4e-vars, and move them to where they are used.
Move some more items to mu4e-helpers.
Diffstat (limited to 'mu4e/mu4e-vars.el')
| -rw-r--r-- | mu4e/mu4e-vars.el | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/mu4e/mu4e-vars.el b/mu4e/mu4e-vars.el index 3d903ea..f7869fa 100644 --- a/mu4e/mu4e-vars.el +++ b/mu4e/mu4e-vars.el @@ -35,31 +35,6 @@ "mu4e - mu for emacs" :group 'mail) -(defcustom mu4e-mu-home nil - "Location of an alternate mu home dir. If not set, use the -defaults, based on the XDG Base Directory Specification." - :group 'mu4e - :type '(choice (const :tag "Default location" nil) - (directory :tag "Specify location")) - :safe 'stringp) - -(defcustom mu4e-mu-binary (executable-find "mu") - "Name of the mu-binary to use. -If it cannot be found in your PATH, you can specify the full -path." - :type 'file - :group 'mu4e - :safe 'stringp) - -(defcustom mu4e-mu-debug nil - "Whether to run the mu binary in debug-mode. -Setting this to t increases the amount of information in the log." - :type 'boolean - :group 'mu4e) - -(make-obsolete-variable 'mu4e-maildir - "determined by server; see `mu4e-root-maildir'." "1.3.8") - (defcustom mu4e-org-support t "Support org-mode links." :type 'boolean @@ -1063,41 +1038,6 @@ We need to keep this information around to quickly re-sort subsets of the contacts in the completions function in mu4e-compose.") -(defvar mu4e~server-props nil - "Information we receive from the mu4e server process \(in the 'pong-handler').") - -(defun mu4e-root-maildir() - "Get the root maildir." - (let ((root-maildir (and mu4e~server-props - (plist-get mu4e~server-props :root-maildir)))) - (unless root-maildir - (mu4e-error "root maildir unknown; did you start mu4e?")) - root-maildir)) - -(defun mu4e-database-path() - "Get the mu4e database path" - (let ((path (and mu4e~server-props - (plist-get mu4e~server-props :database-path)))) - (unless path - (mu4e-error "database-path unknown; did you start mu4e?")) - path)) - -(defun mu4e-personal-addresses(&optional no-regexp) - "Get the list user's personal addresses, as passed to `mu init --my-address=...'. - The address are either plain e-mail address or /regular - expressions/. When NO_REGEXP is non-nil, do not include regexp - address patterns (if any)." - (seq-remove - (lambda(addr) (and no-regexp (string-match-p "^/.*/" addr))) - (when mu4e~server-props (plist-get mu4e~server-props :personal-addresses)))) - -(defun mu4e-server-version() - "Get the server version, which should match mu4e's." - (let ((version (and mu4e~server-props (plist-get mu4e~server-props :version)))) - (unless version - (mu4e-error "version unknown; did you start mu4e?")) - version)) - ;;; Handler functions ;; |
