# HG changeset patch # User Kevin Ryde # Date 1260058916 0 # Node ID 992f0db2b7c1bc97e171653301352bf336a16fb6 # Parent f5f8760e0f26d6340d07d6edae3b08188dec7bec * ffap.el (ffap-rfc-path): Make this a defcustom since `ffap-rfc-directories' is also a defcustom. (My Bug#4514.) diff -r f5f8760e0f26 -r 992f0db2b7c1 lisp/ffap.el --- a/lisp/ffap.el Sat Dec 05 23:51:26 2009 +0000 +++ b/lisp/ffap.el Sun Dec 06 00:21:56 2009 +0000 @@ -951,6 +951,16 @@ "/pub/gnu/emacs/elisp-archive/")) (substring name 2)))) +(defcustom ffap-rfc-path + (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt") + "A `format' string making a filename for RFC documents. +This can be an ange-ftp or tramp remote filename to download, or +a local filename if you have full set of RFCs locally. See also +`ffap-rfc-directories'." + :type 'string + :version "23.1" + :group 'ffap) + (defcustom ffap-rfc-directories nil "A list of directories to look for RFC files. If a given RFC isn't in these then `ffap-rfc-path' is offered." @@ -958,9 +968,6 @@ :version "23.1" :group 'ffap) -(defvar ffap-rfc-path - (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt")) - (defun ffap-rfc (name) (let ((num (match-string 1 name))) (or (ffap-locate-file (format "rfc%s.txt" num) t ffap-rfc-directories)