diff options
| author | Kevin Ryde | 2009-12-06 00:22:51 +0000 |
|---|---|---|
| committer | Kevin Ryde | 2009-12-06 00:22:51 +0000 |
| commit | 990a9cb177f89c39fda8bb7e32f353bfe4bca59d (patch) | |
| tree | 6d0222c477f1b23340c2e195780c9961b5052dac | |
| parent | 9663903099bf3eb1138be6aabe48561e5a38f8fa (diff) | |
| download | emacs-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.)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ffap.el | 13 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-12-05 Juri Linkov <juri@jurta.org> | 6 | 2009-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. | ||
| 957 | This can be an ange-ftp or tramp remote filename to download, or | ||
| 958 | a 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. |
| 956 | If a given RFC isn't in these then `ffap-rfc-path' is offered." | 966 | If 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) |