(interactive)
(org-export-to-buffer \\='latex \"*Org LATEX Export*\"
async subtreep visible-only body-only ext-plist
- (major-mode-remap 'latex-mode)))
+ (major-mode-remap \\='latex-mode)))
When expressed as an anonymous function, using `lambda',
POST-PROCESS needs to be quoted.
This function attempts to use file contents to determine whether
the code is C or C++ and based on that chooses whether to enable
`c-ts-mode' or `c++-ts-mode'."
- (declare (obsolete c-or-c++-mode "30.1"))?
+ (declare (obsolete c-or-c++-mode "30.1"))
(interactive)
(let ((mode
(if (save-excursion
(widen)
(goto-char (point-min))
(re-search-forward c-ts-mode--c-or-c++-regexp nil t))))
- 'c++-ts-mode)
- 'c-ts-mode))
+ 'c++-ts-mode
+ 'c-ts-mode)))
(funcall (major-mode-remap mode))))
;; The entries for C++ must come first to prevent *.c files be taken
(goto-char (point-min))
(re-search-forward c-or-c++-mode--regexp
(+ (point) c-guess-region-max) t))))
- 'c++-mode)
- 'c-mode))
+ 'c++-mode
+ 'c-mode)))
(funcall (if (fboundp 'major-mode-remap)
(major-mode-remap mode)
mode))))