forked from mirrors/org-mode
My personal patches-in-progress branch of Org.
See https://git.tecosaur.net/mirrors/org-mode/compare/main..tec/org-mode:dev.
2d444c1647
* lisp/org.el (org-insert-comment, org-comment-or-uncomment-region): use the relevant language’s major mode comment function if called from within a source block. This patch makes it easier to (un)comment lines of babel source. Now M-; in a soucre code block should Just Work. The modification to ‘org-insert-comment’ also fixes a bug, whereby the function would eat blank lines after it. The first block, where ! is the point, would lead to the second instead of the third: #+name: orig #+begin_src org xxxxxxx ! yyyyyy #+end_src #+name: bad #+begin_src org xxxxxxx # yyyyyy #+end_src #+name: desired #+begin_src org xxxxxxx # yyyyyy #+end_src Also, the ‘org-comment-or-uncomment-region’ change results in an undesirably move of the point after the comment is created. This is because ‘comment-region’ wraps the call to ‘comment-region-function’ in a ‘save-excursion’. The org mode code deletes and reinserts the whole babel block, which confuses save-excursion. Org carefully puts the point back in the proper place, but comment-region’s save-excursion then substitutes its own erroneous placement. |
||
---|---|---|
contrib | ||
doc | ||
etc | ||
lisp | ||
mk | ||
testing | ||
.dir-locals.el | ||
.dir-settings.el | ||
.gitignore | ||
.gitmodules | ||
COPYING | ||
Makefile | ||
README | ||
README_contribute | ||
README_ELPA | ||
README_git | ||
README_maintainer | ||
request-assign-future.txt |
The is a distribution of Org, a plain text notes and project planning tool for Emacs. The homepage of Org is at: http://orgmode.org The installations instructions are at: http://orgmode.org/org.html#Installation This distribution contains: README This file. COPYING The GNU General Public License. Makefile The makefile to compile and install Org. For installation instructions, see the manual or the more detailed procedure on Worg: http://orgmode.org/worg/dev/org-build-system.html mk/ Files needed for building Org. lisp/ Directory with all the Emacs Lisp files that make up Org. doc/ The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. contrib/ A directory with third-party additions for Org. Some really cool stuff is in there. etc/ Files needed for the ODT exporter. testing/ Testing suite for Org. request-assign-future.txt The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the contrib/ directory have copyright assigned to the FSF.