X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Friece-options.el;h=2f2d551c82113cb0806e2724231bb2b7ede3b76d;hb=c87b8b5e7dcba14804b7f0bee453a0a4093f3e85;hp=1e1057c0611536cf7db0efcefca2fd074f51c76d;hpb=1c347cbc3904ae3ea604d16d49c62bdd72047a63;p=elisp%2Friece.git diff --git a/lisp/riece-options.el b/lisp/riece-options.el index 1e1057c..2f2d551 100644 --- a/lisp/riece-options.el +++ b/lisp/riece-options.el @@ -19,8 +19,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -29,10 +29,10 @@ ;; User modifiable variables. (defgroup riece nil - "Riece specific customize group") + "Riece specific customize group.") (defgroup riece-options nil - "Riece user customizable variables" + "Riece user customizable variables." :prefix "riece-" :group 'riece) @@ -42,7 +42,8 @@ riece-others-buffer-mode riece-user-list-buffer-mode riece-channel-list-buffer-mode - riece-layout) + riece-layout + riece-addons) "Variables saved after each session is completed." :type 'string :group 'riece-options) @@ -58,7 +59,7 @@ :group 'riece-options) (defgroup riece-looks nil - "Related to look and feel" + "Look and feel." :prefix "riece-" :group 'riece) @@ -87,13 +88,9 @@ See the document of the function `recenter'." :group 'riece-options) (defcustom riece-data-directory - (cond ((fboundp 'locate-data-directory) - (locate-data-directory "riece")) - ((symbol-file 'riece-data-directory) - (file-name-directory - (locate-library (symbol-file 'riece-data-directory)))) - (t - (expand-file-name "riece" data-directory))) + (if (fboundp 'locate-data-directory) + (locate-data-directory "riece") + (file-name-directory load-file-name)) "Where to look for data files." :type 'directory :group 'riece-options) @@ -139,12 +136,12 @@ way is to put Riece variables on .emacs or file loaded from there." :group 'riece-options) (defgroup riece-server nil - "Server settings" + "Server settings." :prefix "riece-" :group 'riece) (defgroup riece-channel nil - "Channel settings" + "Channel settings." :prefix "riece-" :group 'riece) @@ -251,6 +248,16 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'function :group 'riece-server) +(defcustom riece-user-cache-max-size 512 + "Maximum size of cache of usernames." + :type 'integer + :group 'riece-server) + +(defcustom riece-channel-cache-max-size 512 + "Maximum size of cache of channel names." + :type 'integer + :group 'riece-server) + (defcustom riece-channel-buffer-mode t "When non-nil, Riece will display a channel buffer." :type 'boolean @@ -313,22 +320,6 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'function :group 'riece-options) -(defcustom riece-shrink-buffer-idle-time-delay 5 - "Number of idle seconds to wait before shrinking channel buffers." - :type 'integer - :group 'riece-options) - -(defcustom riece-max-buffer-size nil - "Maximum size of channel buffers." - :type '(radio (integer :tag "Number of characters") - (const nil)) - :group 'riece-options) - -(defcustom riece-shrink-buffer-remove-chars (/ riece-max-send-size 2) - "Number of chars removed when shrinking channel buffers." - :type 'integer - :group 'riece-options) - (defcustom riece-format-time-function #'current-time-string "Function to convert the specified time to the human readable form." :type 'function