aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ffap.el
diff options
context:
space:
mode:
authorKevin Ryde2009-12-06 00:22:51 +0000
committerKevin Ryde2009-12-06 00:22:51 +0000
commit990a9cb177f89c39fda8bb7e32f353bfe4bca59d (patch)
tree6d0222c477f1b23340c2e195780c9961b5052dac /lisp/ffap.el
parent9663903099bf3eb1138be6aabe48561e5a38f8fa (diff)
downloademacs-990a9cb177f89c39fda8bb7e32f353bfe4bca59d.tar.gz
emacs-990a9cb177f89c39fda8bb7e32f353bfe4bca59d.zip
* ffap.el (ffap-rfc-path): Make this a defcustom since
`ffap-rfc-directories' is also a defcustom. (My Bug#4514.)
Diffstat (limited to 'lisp/ffap.el')
-rw-r--r--lisp/ffap.el13
1 files changed, 10 insertions, 3 deletions
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)