diff options
| author | Stefan Kangas | 2022-08-06 17:00:13 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-08-06 17:17:50 +0200 |
| commit | 7c8332e096ab92546db38ae27b582971b26cfdfd (patch) | |
| tree | c5582d7d1ec6a36aa5f1330293c43e8475ce3688 | |
| parent | a3e894810a484aeac56d97f13d1c507e3d4eb0d5 (diff) | |
| download | emacs-7c8332e096ab92546db38ae27b582971b26cfdfd.tar.gz emacs-7c8332e096ab92546db38ae27b582971b26cfdfd.zip | |
Fix namespacing problem in allout.el
* lisp/allout.el (allout-outlinify-sticky): Rename from
'outlineify-sticky'. Make old name into obsolete alias.
(outlinify-sticky): Make into obsolete function alias for
'allout-outlinify-sticky'.
(allout-mode): Doc fix.
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/allout.el | 13 |
2 files changed, 10 insertions, 7 deletions
| @@ -2234,6 +2234,10 @@ remote host are shown. Alternatively, the user option | |||
| 2234 | 'proced-show-remote-processes' can be set to non-nil. | 2234 | 'proced-show-remote-processes' can be set to non-nil. |
| 2235 | 'proced-signal-function' has been marked obsolete. | 2235 | 'proced-signal-function' has been marked obsolete. |
| 2236 | 2236 | ||
| 2237 | --- | ||
| 2238 | *** 'outlineify-sticky' command is renamed to 'allout-outlinify-sticky'. | ||
| 2239 | The old name is still available as an obsolete function alias. | ||
| 2240 | |||
| 2237 | 2241 | ||
| 2238 | * New Modes and Packages in Emacs 29.1 | 2242 | * New Modes and Packages in Emacs 29.1 |
| 2239 | 2243 | ||
diff --git a/lisp/allout.el b/lisp/allout.el index 7421a037380..8e303a8a02f 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1699,7 +1699,7 @@ the HOT-SPOT Operation section. | |||
| 1699 | 1699 | ||
| 1700 | Misc commands: | 1700 | Misc commands: |
| 1701 | ------------- | 1701 | ------------- |
| 1702 | M-x outlineify-sticky Activate outline mode for current buffer, | 1702 | \\[allout-outlinify-sticky] Activate outline mode for current buffer, |
| 1703 | and establish a default file-var setting | 1703 | and establish a default file-var setting |
| 1704 | for `allout-layout'. | 1704 | for `allout-layout'. |
| 1705 | \\[allout-mark-topic] `allout-mark-topic' | 1705 | \\[allout-mark-topic] `allout-mark-topic' |
| @@ -6184,19 +6184,18 @@ save. See `allout-encrypt-unencrypted-on-saves' for more info." | |||
| 6184 | 6184 | ||
| 6185 | ;;;_ #9 miscellaneous | 6185 | ;;;_ #9 miscellaneous |
| 6186 | ;;;_ : Mode: | 6186 | ;;;_ : Mode: |
| 6187 | ;;;_ > outlineify-sticky () | 6187 | ;;;_ > allout-outlinify-sticky () |
| 6188 | ;; outlinify-sticky is correct spelling; provide this alias for sticklers: | ||
| 6189 | ;;;###autoload | 6188 | ;;;###autoload |
| 6190 | (defalias 'outlinify-sticky #'outlineify-sticky) | 6189 | (define-obsolete-function-alias 'outlinify-sticky #'allout-outlinify-sticky "29.1") |
| 6191 | ;;;###autoload | 6190 | ;;;###autoload |
| 6192 | (defun outlineify-sticky (&optional _arg) | 6191 | (define-obsolete-function-alias 'outlineify-sticky #'allout-outlinify-sticky "29.1") |
| 6192 | ;;;###autoload | ||
| 6193 | (defun allout-outlinify-sticky (&optional _arg) | ||
| 6193 | "Activate outline mode and establish file var so it is started subsequently. | 6194 | "Activate outline mode and establish file var so it is started subsequently. |
| 6194 | 6195 | ||
| 6195 | See `allout-layout' and customization of `allout-auto-activation' | 6196 | See `allout-layout' and customization of `allout-auto-activation' |
| 6196 | for details on preparing Emacs for automatic allout activation." | 6197 | for details on preparing Emacs for automatic allout activation." |
| 6197 | |||
| 6198 | (interactive "P") | 6198 | (interactive "P") |
| 6199 | |||
| 6200 | (if (allout-mode-p) (allout-mode)) ; deactivate so we can re-activate... | 6199 | (if (allout-mode-p) (allout-mode)) ; deactivate so we can re-activate... |
| 6201 | (allout-mode) | 6200 | (allout-mode) |
| 6202 | 6201 | ||