aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/netrc.el18
2 files changed, 7 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c2d0a82932c..4024af1b9dd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -10,6 +10,10 @@
10 (uudecode-decoder-program, uudecode-decoder-switches) 10 (uudecode-decoder-program, uudecode-decoder-switches)
11 (uudecode-use-external): Move to the uudecode custom group. 11 (uudecode-use-external): Move to the uudecode custom group.
12 12
13 * net/netrc.el (top-level): Don't load `encrypt' features.
14 (netrc-parse): Don't use encrypt.
15 (netrc-find-service-name, netrc-find-service-number): Don't use caddr.
16
132007-12-02 Agustin Martin <agustin.martin@hispalinux.es> 172007-12-02 Agustin Martin <agustin.martin@hispalinux.es>
14 18
15 * textmodes/flyspell.el (flyspell-large-region): Explicitly set 19 * textmodes/flyspell.el (flyspell-large-region): Explicitly set
diff --git a/lisp/net/netrc.el b/lisp/net/netrc.el
index 8c4b0a08f51..da9182e7cdd 100644
--- a/lisp/net/netrc.el
+++ b/lisp/net/netrc.el
@@ -39,11 +39,6 @@
39 (if (fboundp 'point-at-eol) 39 (if (fboundp 'point-at-eol)
40 'point-at-eol 40 'point-at-eol
41 'line-end-position)) 41 'line-end-position))
42;; autoload encrypt
43
44(eval-and-compile
45 (autoload 'encrypt-find-model "encrypt")
46 (autoload 'encrypt-insert-file-contents "encrypt"))
47 42
48(defgroup netrc nil 43(defgroup netrc nil
49 "Netrc configuration." 44 "Netrc configuration."
@@ -60,13 +55,8 @@
60 (let ((tokens '("machine" "default" "login" 55 (let ((tokens '("machine" "default" "login"
61 "password" "account" "macdef" "force" 56 "password" "account" "macdef" "force"
62 "port")) 57 "port"))
63 (encryption-model (encrypt-find-model file))
64 alist elem result pair) 58 alist elem result pair)
65 59 (insert-file-contents file)
66 (if encryption-model
67 (encrypt-insert-file-contents file encryption-model)
68 (insert-file-contents file))
69
70 (goto-char (point-min)) 60 (goto-char (point-min))
71 ;; Go through the file, line by line. 61 ;; Go through the file, line by line.
72 (while (not (eobp)) 62 (while (not (eobp))
@@ -190,8 +180,7 @@ MODE can be \"login\" or \"password\", suitable for passing to
190 (setq type (or type 'tcp)) 180 (setq type (or type 'tcp))
191 (while (and (setq service (pop services)) 181 (while (and (setq service (pop services))
192 (not (and (= number (cadr service)) 182 (not (and (= number (cadr service))
193 (eq type (caddr service))))) 183 (eq type (car (cddr service)))))))
194 )
195 (car service))) 184 (car service)))
196 185
197(defun netrc-find-service-number (name &optional type) 186(defun netrc-find-service-number (name &optional type)
@@ -200,8 +189,7 @@ MODE can be \"login\" or \"password\", suitable for passing to
200 (setq type (or type 'tcp)) 189 (setq type (or type 'tcp))
201 (while (and (setq service (pop services)) 190 (while (and (setq service (pop services))
202 (not (and (string= name (car service)) 191 (not (and (string= name (car service))
203 (eq type (caddr service))))) 192 (eq type (car (cddr service)))))))
204 )
205 (cadr service))) 193 (cadr service)))
206 194
207(provide 'netrc) 195(provide 'netrc)