script file in riece-data-directory.
* riece-toolbar.el (riece-make-toolbar-from-menu): Locate Ruby
script file in riece-data-directory.
* riece-ruby.el (riece-ruby-execute): Locate Ruby script file in
riece-data-directory.
* riece-options.el (riece-data-directory): New user option.
2005-08-13 Daiki Ueno <ueno@unixuser.org>
+ * riece-async.el (riece-async-open-network-stream): Locate Ruby
+ script file in riece-data-directory.
+ * riece-toolbar.el (riece-make-toolbar-from-menu): Locate Ruby
+ script file in riece-data-directory.
+ * riece-ruby.el (riece-ruby-execute): Locate Ruby script file in
+ riece-data-directory.
+ * riece-options.el (riece-data-directory): New user option.
+
* riece-ruby.el (riece-ruby-execute): Bind process-connection-type
to nil.
;;;###autoload
(defun riece-async-open-network-stream (name buffer host service)
- (let* ((process-connection-type nil)
+ (let* (process-connection-type
(process
(apply #'start-process name buffer riece-ruby-command
- (if (file-name-absolute-p riece-ruby-server-program)
- riece-async-server-program
- (expand-file-name
- riece-async-server-program
- (file-name-directory
- (locate-library
- (symbol-file 'riece-async-open-network-stream)))))
+ (expand-file-name riece-async-server-program
+ riece-data-directory)
riece-async-server-program-arguments)))
(if buffer
(save-excursion
equivalence of two nicknames or channel names.")
(defun riece-identity-prefix (identity)
- "Return the component sans its server from IDENTITY."
+ "Return the component sans its server name from IDENTITY."
(aref identity 0))
(defun riece-identity-server (identity)
- "Return the server component in IDENTITY."
+ "Return the server name component in IDENTITY."
(aref identity 1))
(defun riece-make-identity (prefix server)
(vector prefix server))
(defun riece-identity-equal (ident1 ident2)
- "Return t, if IDENT1 and IDENT2 is equal."
+ "Return t, if IDENT1 and IDENT2 are equal."
(and (riece-identity-equal-no-server
(riece-identity-prefix ident1)
(riece-identity-prefix ident2))
prefix))
(defun riece-identity-equal-no-server (prefix1 prefix2)
- "Return t, if IDENT1 and IDENT2 is equal without server part."
+ "Return t, if IDENT1 and IDENT2 are equal without server part."
(equal (riece-identity-canonicalize-prefix prefix1)
(riece-identity-canonicalize-prefix prefix2)))
:group 'riece-looks)
(defcustom riece-directory (expand-file-name "~/.riece")
- "Where to look for data files."
+ "Where to look for startup files."
:type 'directory
:group 'riece-options)
:type 'directory
:group 'riece-options)
+(defcustom riece-data-directory
+ (if (fboundp 'locate-data-directory)
+ (locate-data-directory "riece")
+ (file-name-directory (locate-library (symbol-file 'riece-data-directory))))
+ "Where to look for data files."
+ :type 'directory
+ :group 'riece-options)
+
(defcustom riece-variables-file
(expand-file-name "init" riece-directory)
"Where to look for variables."
(setq riece-ruby-process
(apply #'start-process "riece-ruby" (generate-new-buffer " *Ruby*")
riece-ruby-command
- (if (file-name-absolute-p riece-ruby-server-program)
- riece-ruby-server-program
- (expand-file-name
- riece-ruby-server-program
- (file-name-directory
- (locate-library
- (symbol-file 'riece-ruby-execute)))))
+ (expand-file-name riece-ruby-server-program
+ riece-data-directory)
riece-ruby-server-program-arguments))
(process-kill-without-query riece-ruby-process)
(set-process-filter riece-ruby-process #'riece-ruby-filter)
(let ((pointer items)
toolbar
file
- menu-item
- (riece-data-directory (locate-data-directory "riece")))
+ menu-item)
(while pointer
(setq file (locate-file (symbol-name (car pointer))
- (if riece-data-directory
- (cons riece-data-directory
- load-path)
- load-path)
+ (cons riece-data-directory load-path)
'(".xpm" ".pbm" ".xbm"))
menu-item (riece-toolbar-find-menu-item (car pointer)))
(if (and file (file-exists-p file))