Current File : //kunden/usr/share/emacs/27.2/lisp/org/org-macs.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\207" [require cl-lib format-spec] 2)
#@27
(fn SYMBOLS &rest BODY)
(defalias 'org-with-gensyms '(macro . #[385 "\300\301\302\"BB\207" [let mapcar #[257 "\211\300\301\302\303\304DDEDD\207" [make-symbol concat "--" symbol-name quote] 8 "\n\n(fn S)"]] 6 (#$ . 480)]))
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put org-with-gensyms edebug-form-spec (sexp body) function-put lisp-indent-function 1] 4)
#@84 Run BODY while preserving the buffer's `buffer-modified-p' state.
(fn &rest BODY)
(defalias 'org-unmodified '(macro . #[128 "\300\301!\302\303BC\304\302\305BB\306DEE\207" [make-symbol "--was-modified" let ((buffer-modified-p)) unwind-protect ((buffer-undo-list t) (inhibit-modification-hooks t)) set-buffer-modified-p] 8 (#$ . 865)]))
(put 'org-unmodified 'edebug-form-spec '(body))
#@19
(fn &rest BODY)
(defalias 'org-without-partial-completion '(macro . #[128 "\300\301\302\303\304BB\305BBBBB\207" [if (and (boundp 'partial-completion-mode) partial-completion-mode (fboundp 'partial-completion-mode)) unwind-protect progn (partial-completion-mode -1) ((partial-completion-mode 1))] 7 (#$ . 1259)]))
(put 'org-without-partial-completion 'edebug-form-spec '(body))
#@96 Move to buffer and point of point-or-marker POM for the duration of BODY.
(fn POM &rest BODY)
(defalias 'org-with-point-at '(macro . #[385 "\300\301!\302DC\303\304\305D\306\307DDE\310\311\312\313BBDBBEE\207" [make-symbol "--mpom" let save-excursion when markerp set-buffer marker-buffer org-with-wide-buffer goto-char or ((point))] 12 (#$ . 1646)]))
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put org-with-point-at edebug-form-spec (form body) function-put lisp-indent-function 1] 4)
#@87 Execute BODY while recording undo information in two buffers.
(fn BUFFER &rest BODY)
(defalias 'org-with-remote-undo '(macro . #[385 "\300\301!\300\302!\300\303!\300\304!\300\305!\300\306!\300\307!\300\310!\311\312B\313B\314BD\315B\316\317BBD\257\320\321\322\323\324\f\316\325BBE \324
\316\326BBE\257\321\327\n\nE\330\316\331BBE\330\316\332BBE\333\334\257\335BB\257FC\"BB\207" [make-symbol "--cline" "--cmd" "--buf1" "--buf2" "--undo1" "--undo2" "--c1" "--c2" let ((org-current-line)) (this-command) ((current-buffer)) (buffer-undo-list) with-current-buffer (buffer-undo-list) append when org-agenda-allow-remote-undo setq org-verify-change-for-undo (buffer-undo-list) (buffer-undo-list) or and ((undo-boundary)) ((undo-boundary)) push list (org-agenda-undo-list)] 29 (#$ . 2164)]))
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put org-with-remote-undo edebug-form-spec (form body) function-put lisp-indent-function 1] 4)
#@46 Inhibit read-only for BODY.
(fn &rest BODY)
(defalias 'org-no-read-only '(macro . #[128 "\300\301BB\207" [let ((inhibit-read-only t))] 4 (#$ . 3166)]))
(put 'org-no-read-only 'edebug-form-spec '(body))
#@329 Save and restore outline visibility around BODY.
If USE-MARKERS is non-nil, use markers for the positions. This
means that the buffer may change while running BODY, but it also
means that the buffer should stay alive during the operation,
because otherwise all these markers will point to nowhere.
(fn USE-MARKERS &rest BODY)
(defalias 'org-save-outline-visibility '(macro . #[385 "\300\301!\300\302!\300\303!\304\305BD\306\307\310\311\312\313\314\315\316\317\320E\321\322\323BB\322\324BB\325BBB\257EE\326BBDE\327\330B\331\332\320D\333BB\334\335\336\337\fED\340\341\n\342BBFEEE\207" [make-symbol "--data" "--invisible-types" "--markers?" let* ('(org-hide-block outline)) mapcar lambda (o) let ((beg (overlay-start o)) (end (overlay-end o)) (type (overlay-get o 'invisible))) and beg end (> end beg) memq type list if ((copy-marker beg) beg) ((copy-marker end t) end) (type) ((org-with-wide-buffer (overlays-in (point-min) (point-max)))) unwind-protect progn org-with-wide-buffer dolist ((remove-overlays (point-min) (point-max) 'invisible type)) pcase-dolist `(,beg ,end ,type) delq nil (org-flag-region beg end t type) when ((set-marker beg nil) (set-marker end nil))] 24 (#$ . 3377)]))
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put org-save-outline-visibility edebug-form-spec (form body) function-put lisp-indent-function 1] 4)
#@70 Execute body while temporarily widening the buffer.
(fn &rest BODY)
(defalias 'org-with-wide-buffer '(macro . #[128 "\300\301\302BBD\207" [save-excursion save-restriction (widen)] 5 (#$ . 4753)]))
(put 'org-with-wide-buffer 'edebug-form-spec '(body))
#@70 Execute BODY with limited number of outline levels.
(fn &rest BODY)
(defalias 'org-with-limited-levels '(macro . #[128 "\300\301\302\303\304\305\306BB\257\207" [progn (defvar org-called-with-limited-levels) (defvar org-outline-regexp) (defvar outline-regexp) (defvar org-outline-regexp-bol) let* ((org-called-with-limited-levels t) (org-outline-regexp (org-get-limited-outline-regexp)) (outline-regexp org-outline-regexp) (org-outline-regexp-bol (concat "^" org-outline-regexp)))] 9 (#$ . 5012)]))
(put 'org-with-limited-levels 'edebug-form-spec '(body))
#@25
(fn ENVIRONMENT FORM)
(defalias 'org-eval-in-environment '(macro . #[514 "\300\301\302\303DFD\207" [eval list 'let quote] 8 (#$ . 5577)]))
(byte-code "\300\301\302\303#\210\304\301\305\306#\300\207" [put org-eval-in-environment edebug-form-spec (form form) function-put lisp-indent-function 1] 4)
#@70 Load FILE with optional arguments NOERROR and MUSTSUFFIX.
(fn FILE)
(defalias 'org-load-noerror-mustsuffix '(macro . #[257 "\300\301BB\207" [load ('noerror nil nil 'mustsuffix)] 4 (#$ . 5884)]))
#@65 Execute BODY while preserving local variables.
(fn &rest BODY)
(defalias 'org-preserve-local-variables '(macro . #[128 "\300\301\302\303B\304BBE\207" [let ((local-variables (org-with-wide-buffer (goto-char (point-max)) (let ((case-fold-search t)) (and (re-search-backward "^[ ]*# +Local Variables:" (max (- (point) 3000) 1) t) (delete-and-extract-region (point) (point-max))))))) unwind-protect progn ((when local-variables (org-with-wide-buffer (goto-char (point-max)) (let ((overlay (cl-find-if (lambda (o) (eq 'outline (overlay-get o 'invisible))) (overlays-at (1- (point)))))) (unless (bolp) (insert "\n")) (insert local-variables) (when overlay (move-overlay overlay (overlay-start overlay) (point-max)))))))] 6 (#$ . 6087)]))
(put 'org-preserve-local-variables 'edebug-form-spec '(body))
#@60 Suppress popup windows and evaluate BODY.
(fn &rest BODY)
(defalias 'org-no-popups '(macro . #[128 "\300\301BB\207" [let (pop-up-frames display-buffer-alist)] 4 (#$ . 6890)]))
#@88 Return the base buffer of BUFFER, if it has one. Else return the buffer.
(fn BUFFER)
(defalias 'org-base-buffer #[257 "\211\205 \300!\206 \211\207" [buffer-base-buffer] 3 (#$ . 7074)])
#@102 Like `find-buffer-visiting' but always return the base buffer and
not an indirect buffer.
(fn FILE)
(defalias 'org-find-base-buffer-visiting #[257 "\300!\206 \301!\302!\207" [get-file-buffer find-buffer-visiting org-base-buffer] 4 (#$ . 7271)])
#@153 Switch to buffer in a second window on the current frame.
In particular, do not allow pop-up frames.
Returns the newly created buffer.
(fn &rest ARGS)
(defalias 'org-switch-to-buffer-other-window #[128 "\302\211\303\304\"*\207" [display-buffer-alist pop-up-frames nil apply switch-to-buffer-other-window] 4 (#$ . 7528)])
#@360 Fit WINDOW to the buffer, but only if it is not a side-by-side window.
WINDOW defaults to the selected window. MAX-HEIGHT and MIN-HEIGHT are
passed through to `fit-window-to-buffer'. If SHRINK-ONLY is set, call
`shrink-window-if-larger-than-buffer' instead, the height limit is
ignored in this case.
(fn &optional WINDOW MAX-HEIGHT MIN-HEIGHT SHRINK-ONLY)
(defalias 'org-fit-window-to-buffer #[1024 "\300\301!\203
\301!?\202 \302 \303!V\2043 \300\304!\203) \211\204) \304#\210\2023 \300\305!\2033 \305!\210\2069 \306 \207" [fboundp window-full-width-p frame-width window-width fit-window-to-buffer shrink-window-if-larger-than-buffer selected-window] 8 (#$ . 7860)])
#@152 Non-nil if FILE is newer than TIME.
FILE is a filename, as a string, TIME is a list of integers, as
returned by, e.g., `current-time'.
(fn FILE TIME)
(defalias 'org-file-newer-than-p #[514 "\300!\205 \301\302\303\304!8\305\306#\302\305\306#\"?\207" [file-exists-p time-less-p cl-subseq 5 file-attributes 0 2] 8 (#$ . 8546)])
#@1200 Compile a SOURCE file using PROCESS.
PROCESS is either a function or a list of shell commands, as
strings. EXT is a file extension, without the leading dot, as
a string. It is used to check if the process actually succeeded.
PROCESS must create a file with the same base name and directory
as SOURCE, but ending with EXT. The function then returns its
filename. Otherwise, it raises an error. The error message can
then be refined by providing string ERR-MSG, which is appended to
the standard message.
If PROCESS is a function, it is called with a single argument:
the SOURCE file.
If it is a list of commands, each of them is called using
`shell-command'. By default, in each command, %b, %f, %F, %o and
%O are replaced with, respectively, SOURCE base name, name, full
name, directory and absolute output file name. It is possible,
however, to use more place-holders by specifying them in optional
argument SPEC, as an alist following the pattern
(CHARACTER . REPLACEMENT-STRING).
When PROCESS is a list of commands, optional argument LOG-BUF can
be set to a buffer or a buffer name. `shell-command' then uses
it for output.
(fn SOURCE PROCESS EXT &optional ERR-MSG LOG-BUF SPEC)
(defalias 'org-compile-file #[1539 "\300!\301!\302!\206 \303\304\305 Q\"\306 ;\203'