diff options
| author | Richard M. Stallman | 2002-04-28 03:29:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-28 03:29:39 +0000 |
| commit | 8ba148c706ad4c3c13ddfa8f366c0f60a62a36f4 (patch) | |
| tree | 3890ffacf8c5d7725df6ba9f4dbe3e5162c8fecf | |
| parent | 8f772dfd7a4e2cc2e0fb0a9dad558b7852f16755 (diff) | |
| download | emacs-8ba148c706ad4c3c13ddfa8f366c0f60a62a36f4.tar.gz emacs-8ba148c706ad4c3c13ddfa8f366c0f60a62a36f4.zip | |
(custom-load-symbol): Moved to custom.el.
(custom-load-recursion): Likewise.
| -rw-r--r-- | etc/TODO | 3 | ||||
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 39 |
3 files changed, 15 insertions, 40 deletions
| @@ -57,6 +57,9 @@ Other features we would like: | |||
| 57 | * Make desktop.el save the "frame configuration" of Emacs (in some | 57 | * Make desktop.el save the "frame configuration" of Emacs (in some |
| 58 | useful sense). | 58 | useful sense). |
| 59 | 59 | ||
| 60 | * Give desktop.el a feature to switch between different named | ||
| 61 | desktops. | ||
| 62 | |||
| 60 | * Replace finder.el with something that generates an Info file | 63 | * Replace finder.el with something that generates an Info file |
| 61 | which gives the same information through a menu structure. [Dave | 64 | which gives the same information through a menu structure. [Dave |
| 62 | Love started on this.] | 65 | Love started on this.] |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 52fe70d3f90..c05d40e4838 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -5,6 +5,12 @@ | |||
| 5 | 5 | ||
| 6 | 2002-04-27 Richard M. Stallman <rms@gnu.org> | 6 | 2002-04-27 Richard M. Stallman <rms@gnu.org> |
| 7 | 7 | ||
| 8 | * custom.el (custom-load-symbol): Moved from cus-edit.el. | ||
| 9 | (custom-load-recursion): Likewise. | ||
| 10 | |||
| 11 | * cus-edit.el (custom-load-symbol): Moved to custom.el. | ||
| 12 | (custom-load-recursion): Likewise. | ||
| 13 | |||
| 8 | * progmodes/ada-xref.el (ada-add-ada-menu): Menu pseudo-keys | 14 | * progmodes/ada-xref.el (ada-add-ada-menu): Menu pseudo-keys |
| 9 | generated by easymenu are now lowercase. | 15 | generated by easymenu are now lowercase. |
| 10 | 16 | ||
| @@ -52,7 +58,12 @@ | |||
| 52 | Put a `read-face-name' prop on the entire line. | 58 | Put a `read-face-name' prop on the entire line. |
| 53 | (describe-face): Handle multiple faces via read-face-name. | 59 | (describe-face): Handle multiple faces via read-face-name. |
| 54 | 60 | ||
| 55 | * textmodes/tex-mode.el (tex-start-tex): Fix previous change. | 61 | * textmodes/tex-mode.el (tex-start-options): New variable. |
| 62 | (tex-start-commands): New variable. | ||
| 63 | (tex-start-options-string): Variable deleted. | ||
| 64 | (tex-start-tex): Use tex-start-options and tex-start-commands, | ||
| 65 | not tex-start-options-string. | ||
| 66 | (tex-command): Doc fix. | ||
| 56 | 67 | ||
| 57 | 2002-04-26 Sam Steingold <sds@gnu.org> | 68 | 2002-04-26 Sam Steingold <sds@gnu.org> |
| 58 | 69 | ||
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 260503134c1..91a9fdde91d 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -1836,45 +1836,6 @@ and `face'." | |||
| 1836 | (t | 1836 | (t |
| 1837 | (funcall show widget value))))) | 1837 | (funcall show widget value))))) |
| 1838 | 1838 | ||
| 1839 | (defvar custom-load-recursion nil | ||
| 1840 | "Hack to avoid recursive dependencies.") | ||
| 1841 | |||
| 1842 | ;;;###autoload | ||
| 1843 | (defun custom-load-symbol (symbol) | ||
| 1844 | "Load all dependencies for SYMBOL." | ||
| 1845 | (unless custom-load-recursion | ||
| 1846 | (let ((custom-load-recursion t) | ||
| 1847 | (loads (get symbol 'custom-loads)) | ||
| 1848 | load) | ||
| 1849 | (while loads | ||
| 1850 | (setq load (car loads) | ||
| 1851 | loads (cdr loads)) | ||
| 1852 | (cond ((symbolp load) | ||
| 1853 | (condition-case nil | ||
| 1854 | (require load) | ||
| 1855 | (error nil))) | ||
| 1856 | ;; Don't reload a file already loaded. | ||
| 1857 | ((and (boundp 'preloaded-file-list) | ||
| 1858 | (member load preloaded-file-list))) | ||
| 1859 | ((assoc load load-history)) | ||
| 1860 | ;; This was just (assoc (locate-library load) load-history) | ||
| 1861 | ;; but has been optimized not to load locate-library | ||
| 1862 | ;; if not necessary. | ||
| 1863 | ((let (found (regexp (regexp-quote load))) | ||
| 1864 | (dolist (loaded load-history) | ||
| 1865 | (and (string-match regexp (car loaded)) | ||
| 1866 | (eq (locate-library load) (car loaded)) | ||
| 1867 | (setq found t))) | ||
| 1868 | found)) | ||
| 1869 | ;; Without this, we would load cus-edit recursively. | ||
| 1870 | ;; We are still loading it when we call this, | ||
| 1871 | ;; and it is not in load-history yet. | ||
| 1872 | ((equal load "cus-edit")) | ||
| 1873 | (t | ||
| 1874 | (condition-case nil | ||
| 1875 | (load-library load) | ||
| 1876 | (error nil)))))))) | ||
| 1877 | |||
| 1878 | (defun custom-load-widget (widget) | 1839 | (defun custom-load-widget (widget) |
| 1879 | "Load all dependencies for WIDGET." | 1840 | "Load all dependencies for WIDGET." |
| 1880 | (custom-load-symbol (widget-value widget))) | 1841 | (custom-load-symbol (widget-value widget))) |