aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-13 02:16:25 +0000
committerChong Yidong2009-09-13 02:16:25 +0000
commit42c3a9e31dd7cf6ea27ccbe41f0129cbb5d3a840 (patch)
tree495d89024ee70a1965847aa4c08d7e571a7f00d9
parent1e2b6acfd27f40de73c37bdf0d06ba58c4c44700 (diff)
downloademacs-42c3a9e31dd7cf6ea27ccbe41f0129cbb5d3a840.tar.gz
emacs-42c3a9e31dd7cf6ea27ccbe41f0129cbb5d3a840.zip
* eshell/em-hist.el:
* eshell/em-dirs.el (eshell-complete-user-reference): Declare pcomplete functions and variables to avoid compiler warnings. * eshell/em-script.el (eshell-login-script, eshell-rc-script): * eshell/em-dirs.el (eshell-last-dir-ring-file-name): * eshell/em-alias.el (eshell-aliases-file): * eshell/em-hist.el (eshell-history-file-name): Use expand-file-name instead of concat to make file names (Bug#4308).
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/eshell/em-alias.el2
-rw-r--r--lisp/eshell/em-dirs.el7
-rw-r--r--lisp/eshell/em-hist.el6
-rw-r--r--lisp/eshell/em-script.el4
5 files changed, 28 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index da9f156ab22..3e727a115ed 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12009-09-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * eshell/em-hist.el:
4 * eshell/em-dirs.el (eshell-complete-user-reference): Declare
5 pcomplete functions and variables to avoid compiler warnings.
6
72009-09-13 Leo <sdl.web@gmail.com> (tiny change)
8
9 * eshell/em-script.el (eshell-login-script, eshell-rc-script):
10 * eshell/em-dirs.el (eshell-last-dir-ring-file-name):
11 * eshell/em-alias.el (eshell-aliases-file):
12 * eshell/em-hist.el (eshell-history-file-name): Use
13 expand-file-name instead of concat to make file names (Bug#4308).
14
12009-09-13 Glenn Morris <rgm@gnu.org> 152009-09-13 Glenn Morris <rgm@gnu.org>
2 16
3 * ediff-merg.el (ediff-do-merge): 17 * ediff-merg.el (ediff-do-merge):
diff --git a/lisp/eshell/em-alias.el b/lisp/eshell/em-alias.el
index f0b026175f1..7e1a0a82258 100644
--- a/lisp/eshell/em-alias.el
+++ b/lisp/eshell/em-alias.el
@@ -102,7 +102,7 @@
102 ;; :link '(info-link "(eshell)Command aliases") 102 ;; :link '(info-link "(eshell)Command aliases")
103 :group 'eshell-module) 103 :group 'eshell-module)
104 104
105(defcustom eshell-aliases-file (concat eshell-directory-name "alias") 105(defcustom eshell-aliases-file (expand-file-name "alias" eshell-directory-name)
106 "*The file in which aliases are kept. 106 "*The file in which aliases are kept.
107Whenever an alias is defined by the user, using the `alias' command, 107Whenever an alias is defined by the user, using the `alias' command,
108it will be written to this file. Thus, alias definitions (and 108it will be written to this file. Thus, alias definitions (and
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el
index fa1af37f808..cc95d810213 100644
--- a/lisp/eshell/em-dirs.el
+++ b/lisp/eshell/em-dirs.el
@@ -138,7 +138,7 @@ This is effective only if directory tracking is enabled."
138 :group 'eshell-dirs) 138 :group 'eshell-dirs)
139 139
140(defcustom eshell-last-dir-ring-file-name 140(defcustom eshell-last-dir-ring-file-name
141 (concat eshell-directory-name "lastdir") 141 (expand-file-name "lastdir" eshell-directory-name)
142 "*If non-nil, name of the file to read/write the last-dir-ring. 142 "*If non-nil, name of the file to read/write the last-dir-ring.
143See also `eshell-read-last-dir-ring' and `eshell-write-last-dir-ring'. 143See also `eshell-read-last-dir-ring' and `eshell-write-last-dir-ring'.
144If it is nil, the last-dir-ring will not be written to disk." 144If it is nil, the last-dir-ring will not be written to disk."
@@ -276,6 +276,11 @@ Thus, this does not include the current directory.")
276 (path (eshell-find-previous-directory regexp))) 276 (path (eshell-find-previous-directory regexp)))
277 (concat (or path letter) "/")))) 277 (concat (or path letter) "/"))))
278 278
279(defvar pcomplete-stub)
280(defvar pcomplete-last-completion-raw)
281(declare-function pcomplete-actual-arg "pcomplete")
282(declare-function pcomplete-uniqify-list "pcomplete")
283
279(defun eshell-complete-user-reference () 284(defun eshell-complete-user-reference ()
280 "If there is a user reference, complete it." 285 "If there is a user reference, complete it."
281 (let ((arg (pcomplete-actual-arg))) 286 (let ((arg (pcomplete-actual-arg)))
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el
index 844a736c65c..3ca3dc77c0e 100644
--- a/lisp/eshell/em-hist.el
+++ b/lisp/eshell/em-hist.el
@@ -86,7 +86,7 @@
86 :group 'eshell-hist) 86 :group 'eshell-hist)
87 87
88(defcustom eshell-history-file-name 88(defcustom eshell-history-file-name
89 (concat eshell-directory-name "history") 89 (expand-file-name "history" eshell-directory-name)
90 "*If non-nil, name of the file to read/write input history. 90 "*If non-nil, name of the file to read/write input history.
91See also `eshell-read-history' and `eshell-write-history'. 91See also `eshell-read-history' and `eshell-write-history'.
92If it is nil, Eshell will use the value of HISTFILE." 92If it is nil, Eshell will use the value of HISTFILE."
@@ -583,6 +583,10 @@ See also `eshell-read-history'."
583 posb (cdr posb) 583 posb (cdr posb)
584 pose (cdr pose)))))))) 584 pose (cdr pose))))))))
585 585
586(defvar pcomplete-stub)
587(defvar pcomplete-last-completion-raw)
588(declare-function pcomplete-actual-arg "pcomplete")
589
586(defun eshell-complete-history-reference () 590(defun eshell-complete-history-reference ()
587 "Complete a history reference, by completing the event designator." 591 "Complete a history reference, by completing the event designator."
588 (let ((arg (pcomplete-actual-arg))) 592 (let ((arg (pcomplete-actual-arg)))
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el
index fbe10278c37..2d063ea4c2c 100644
--- a/lisp/eshell/em-script.el
+++ b/lisp/eshell/em-script.el
@@ -40,14 +40,14 @@ commands, as a script file."
40 :type 'hook 40 :type 'hook
41 :group 'eshell-script) 41 :group 'eshell-script)
42 42
43(defcustom eshell-login-script (concat eshell-directory-name "login") 43(defcustom eshell-login-script (expand-file-name "login" eshell-directory-name)
44 "*If non-nil, a file to invoke when starting up Eshell interactively. 44 "*If non-nil, a file to invoke when starting up Eshell interactively.
45This file should be a file containing Eshell commands, where comment 45This file should be a file containing Eshell commands, where comment
46lines begin with '#'." 46lines begin with '#'."
47 :type 'file 47 :type 'file
48 :group 'eshell-script) 48 :group 'eshell-script)
49 49
50(defcustom eshell-rc-script (concat eshell-directory-name "profile") 50(defcustom eshell-rc-script (expand-file-name "profile" eshell-directory-name)
51 "*If non-nil, a file to invoke whenever Eshell is started. 51 "*If non-nil, a file to invoke whenever Eshell is started.
52This includes when running `eshell-command'." 52This includes when running `eshell-command'."
53 :type 'file 53 :type 'file