aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ffap.el13
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 04203266058..dc86bd235cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-12-06 Kevin Ryde <user42@zip.com.au>
2
3 * ffap.el (ffap-rfc-path): Make this a defcustom since
4 `ffap-rfc-directories' is also a defcustom. (My Bug#4514.)
5
12009-12-05 Juri Linkov <juri@jurta.org> 62009-12-05 Juri Linkov <juri@jurta.org>
2 7
3 Save and restore dired buffer's point positions too. (Bug#4880) 8 Save and restore dired buffer's point positions too. (Bug#4880)
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 7d3f279f724..b7761a63198 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -951,6 +951,16 @@ If t, `ffap-tex-init' will initialize this when needed.")
951 "/pub/gnu/emacs/elisp-archive/")) 951 "/pub/gnu/emacs/elisp-archive/"))
952 (substring name 2)))) 952 (substring name 2))))
953 953
954(defcustom ffap-rfc-path
955 (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt")
956 "A `format' string making a filename for RFC documents.
957This can be an ange-ftp or tramp remote filename to download, or
958a local filename if you have full set of RFCs locally. See also
959`ffap-rfc-directories'."
960 :type 'string
961 :version "23.1"
962 :group 'ffap)
963
954(defcustom ffap-rfc-directories nil 964(defcustom ffap-rfc-directories nil
955 "A list of directories to look for RFC files. 965 "A list of directories to look for RFC files.
956If a given RFC isn't in these then `ffap-rfc-path' is offered." 966If a given RFC isn't in these then `ffap-rfc-path' is offered."
@@ -958,9 +968,6 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered."
958 :version "23.1" 968 :version "23.1"
959 :group 'ffap) 969 :group 'ffap)
960 970
961(defvar ffap-rfc-path
962 (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt"))
963
964(defun ffap-rfc (name) 971(defun ffap-rfc (name)
965 (let ((num (match-string 1 name))) 972 (let ((num (match-string 1 name)))
966 (or (ffap-locate-file (format "rfc%s.txt" num) t ffap-rfc-directories) 973 (or (ffap-locate-file (format "rfc%s.txt" num) t ffap-rfc-directories)