2009-06-30 05:24:57 +00:00
|
|
|
;;; org-indent.el --- Dynamic indentation for Org-mode
|
2011-08-15 13:23:11 +00:00
|
|
|
;; Copyright (C) 2009-2011 Free Software Foundation, Inc.
|
2009-06-30 05:24:57 +00:00
|
|
|
;;
|
|
|
|
;; Author: Carsten Dominik <carsten at orgmode dot org>
|
|
|
|
;; Keywords: outlines, hypermedia, calendar, wp
|
|
|
|
;; Homepage: http://orgmode.org
|
|
|
|
;;
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
;;
|
2009-08-08 04:34:24 +00:00
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
2009-06-30 05:24:57 +00:00
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2009-08-08 04:34:24 +00:00
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
2009-06-30 05:24:57 +00:00
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
2009-08-08 04:34:24 +00:00
|
|
|
;;
|
2009-06-30 05:24:57 +00:00
|
|
|
;; You should have received a copy of the GNU General Public License
|
2009-08-08 04:34:24 +00:00
|
|
|
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
;;
|
2009-06-30 05:24:57 +00:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;;
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;; This is an implementation of dynamic virtual indentation. It works
|
|
|
|
;; by adding text properties to a buffer to make sure lines are
|
|
|
|
;; indented according to outline structure.
|
|
|
|
|
2010-07-16 21:22:01 +00:00
|
|
|
;;; Code:
|
|
|
|
|
2009-06-30 05:24:57 +00:00
|
|
|
(require 'org-macs)
|
|
|
|
(require 'org-compat)
|
|
|
|
(require 'org)
|
2010-07-16 21:22:01 +00:00
|
|
|
|
2009-06-30 05:24:57 +00:00
|
|
|
(eval-when-compile
|
|
|
|
(require 'cl))
|
|
|
|
|
2010-12-10 13:13:05 +00:00
|
|
|
(declare-function org-inlinetask-get-task-level "org-inlinetask" ())
|
|
|
|
(declare-function org-inlinetask-in-task-p "org-inlinetask" ())
|
2011-02-27 14:52:36 +00:00
|
|
|
(declare-function org-list-item-body-column "org-list" (item))
|
2010-12-10 13:13:05 +00:00
|
|
|
|
2009-06-30 05:24:57 +00:00
|
|
|
(defgroup org-indent nil
|
|
|
|
"Options concerning dynamic virtual outline indentation."
|
2010-03-23 07:31:55 +00:00
|
|
|
:tag "Org Indent"
|
2009-06-30 05:24:57 +00:00
|
|
|
:group 'org)
|
|
|
|
|
|
|
|
(defconst org-indent-max 40
|
2010-07-16 21:22:01 +00:00
|
|
|
"Maximum indentation in characters.")
|
2011-03-19 19:01:49 +00:00
|
|
|
(defconst org-indent-max-levels 20
|
|
|
|
"Maximum added level through virtual indentation, in
|
|
|
|
characters.
|
|
|
|
|
|
|
|
It is computed by multiplying `org-indent-indentation-per-level'
|
|
|
|
minus one by actual level of the headline minus one.")
|
2009-06-30 05:24:57 +00:00
|
|
|
|
|
|
|
(defvar org-indent-strings nil
|
|
|
|
"Vector with all indentation strings.
|
|
|
|
It will be set in `org-indent-initialize'.")
|
|
|
|
(defvar org-indent-stars nil
|
|
|
|
"Vector with all indentation star strings.
|
|
|
|
It will be set in `org-indent-initialize'.")
|
2011-07-21 17:02:35 +00:00
|
|
|
(defvar org-indent-inlinetask-first-star (org-add-props "*" '(face org-warning))
|
|
|
|
"First star of inline tasks, with correct face.")
|
2011-07-21 14:20:26 +00:00
|
|
|
(defvar org-indent-initial-marker nil
|
2011-07-21 17:02:35 +00:00
|
|
|
"Position of initialization before interrupt.")
|
2011-07-21 14:20:26 +00:00
|
|
|
(defvar org-indent-initial-timer nil
|
|
|
|
"Timer used for initialization.")
|
|
|
|
(defvar org-indent-initial-lock nil
|
|
|
|
"Lock used of initialization.")
|
2009-08-03 08:11:38 +00:00
|
|
|
(defvar org-hide-leading-stars-before-indent-mode nil
|
2010-07-16 21:22:01 +00:00
|
|
|
"Used locally.")
|
2011-07-23 12:25:27 +00:00
|
|
|
(defvar org-indent-modified-headline-flag nil
|
2011-02-27 14:52:36 +00:00
|
|
|
"Non nil if the last deletion acted on an headline.
|
2011-07-23 12:25:27 +00:00
|
|
|
It is modified by `org-indent-notify-modified-headline'.")
|
2011-02-27 14:52:36 +00:00
|
|
|
|
2009-06-30 05:24:57 +00:00
|
|
|
|
|
|
|
(defcustom org-indent-boundary-char ?\ ; comment to protect space char
|
|
|
|
"The end of the virtual indentation strings, a single-character string.
|
|
|
|
The default is just a space, but if you wish, you can use \"|\" or so.
|
|
|
|
This can be useful on a terminal window - under a windowing system,
|
|
|
|
it may be prettier to customize the org-indent face."
|
|
|
|
:group 'org-indent
|
|
|
|
:set (lambda (var val)
|
|
|
|
(set var val)
|
|
|
|
(and org-indent-strings (org-indent-initialize)))
|
|
|
|
:type 'character)
|
|
|
|
|
|
|
|
(defcustom org-indent-mode-turns-off-org-adapt-indentation t
|
2010-07-16 21:22:01 +00:00
|
|
|
"Non-nil means setting the variable `org-indent-mode' will \
|
|
|
|
turn off indentation adaptation.
|
2009-06-30 05:24:57 +00:00
|
|
|
For details see the variable `org-adapt-indentation'."
|
|
|
|
:group 'org-indent
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom org-indent-mode-turns-on-hiding-stars t
|
2010-07-16 21:22:01 +00:00
|
|
|
"Non-nil means setting the variable `org-indent-mode' will \
|
|
|
|
turn on `org-hide-leading-stars'."
|
2009-06-30 05:24:57 +00:00
|
|
|
:group 'org-indent
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom org-indent-indentation-per-level 2
|
|
|
|
"Indentation per level in number of characters."
|
|
|
|
:group 'org-indent
|
|
|
|
:type 'integer)
|
|
|
|
|
|
|
|
(defun org-indent-initialize ()
|
2011-02-27 14:52:36 +00:00
|
|
|
"Initialize the indentation strings."
|
2009-06-30 05:24:57 +00:00
|
|
|
(setq org-indent-strings (make-vector (1+ org-indent-max) nil))
|
|
|
|
(setq org-indent-stars (make-vector (1+ org-indent-max) nil))
|
2009-11-20 13:56:45 +00:00
|
|
|
(aset org-indent-strings 0 nil)
|
|
|
|
(aset org-indent-stars 0 nil)
|
2009-06-30 05:24:57 +00:00
|
|
|
(loop for i from 1 to org-indent-max do
|
|
|
|
(aset org-indent-strings i
|
|
|
|
(org-add-props
|
|
|
|
(concat (make-string (1- i) ?\ )
|
|
|
|
(char-to-string org-indent-boundary-char))
|
|
|
|
nil 'face 'org-indent)))
|
|
|
|
(loop for i from 1 to org-indent-max-levels do
|
|
|
|
(aset org-indent-stars i
|
|
|
|
(org-add-props (make-string i ?*)
|
|
|
|
nil 'face 'org-hide))))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(define-minor-mode org-indent-mode
|
|
|
|
"When active, indent text according to outline structure.
|
|
|
|
|
2011-02-20 12:44:00 +00:00
|
|
|
Internally this works by adding `line-prefix' and `wrap-prefix'
|
2011-02-27 14:52:36 +00:00
|
|
|
properties, after each buffer modifiation, on the modified zone."
|
2009-06-30 05:24:57 +00:00
|
|
|
nil " Ind" nil
|
2010-07-05 15:46:19 +00:00
|
|
|
(cond
|
|
|
|
((org-bound-and-true-p org-inhibit-startup)
|
|
|
|
(setq org-indent-mode nil))
|
2010-07-06 08:23:41 +00:00
|
|
|
((and org-indent-mode (featurep 'xemacs))
|
2010-08-08 03:49:43 +00:00
|
|
|
(message "org-indent-mode does not work in XEmacs - refusing to turn it on")
|
2010-07-06 08:23:41 +00:00
|
|
|
(setq org-indent-mode nil))
|
2010-07-05 15:46:19 +00:00
|
|
|
((and org-indent-mode
|
2010-07-06 08:23:41 +00:00
|
|
|
(not (org-version-check "23.1.50" "Org Indent mode" :predicate)))
|
2010-08-08 03:49:43 +00:00
|
|
|
(message "org-indent-mode can crash Emacs 23.1 - refusing to turn it on!")
|
2010-07-05 15:46:19 +00:00
|
|
|
(ding)
|
|
|
|
(sit-for 1)
|
|
|
|
(setq org-indent-mode nil))
|
|
|
|
(org-indent-mode
|
|
|
|
;; mode was turned on.
|
|
|
|
(org-set-local 'indent-tabs-mode nil)
|
|
|
|
(or org-indent-strings (org-indent-initialize))
|
2011-07-21 14:20:26 +00:00
|
|
|
(org-set-local 'org-indent-initial-marker (copy-marker 1))
|
|
|
|
(org-set-local 'org-indent-initial-lock nil)
|
2010-07-05 15:46:19 +00:00
|
|
|
(when org-indent-mode-turns-off-org-adapt-indentation
|
|
|
|
(org-set-local 'org-adapt-indentation nil))
|
|
|
|
(when org-indent-mode-turns-on-hiding-stars
|
|
|
|
(org-set-local 'org-hide-leading-stars-before-indent-mode
|
|
|
|
org-hide-leading-stars)
|
|
|
|
(org-set-local 'org-hide-leading-stars t))
|
2011-07-06 18:56:39 +00:00
|
|
|
(make-local-variable 'buffer-substring-filters)
|
|
|
|
(add-to-list 'buffer-substring-filters
|
2010-07-05 15:46:19 +00:00
|
|
|
'org-indent-remove-properties-from-string)
|
2011-02-27 14:52:36 +00:00
|
|
|
(org-add-hook 'after-change-functions 'org-indent-refresh-maybe nil 'local)
|
|
|
|
(org-add-hook 'before-change-functions
|
2011-07-23 12:25:27 +00:00
|
|
|
'org-indent-notify-modified-headline nil 'local)
|
2011-07-21 14:20:26 +00:00
|
|
|
(and font-lock-mode (org-restart-font-lock))
|
2011-07-24 08:27:23 +00:00
|
|
|
(org-indent-remove-properties (point-min) (point-max))
|
2011-07-21 14:20:26 +00:00
|
|
|
(org-set-local 'org-indent-initial-timer
|
|
|
|
(run-with-idle-timer 0.2 t #'org-indent-initialize-buffer)))
|
2010-07-05 15:46:19 +00:00
|
|
|
(t
|
|
|
|
;; mode was turned off (or we refused to turn it on)
|
2011-07-24 08:27:23 +00:00
|
|
|
(kill-local-variable 'org-adapt-indentation)
|
|
|
|
(when (timerp org-indent-initial-timer)
|
|
|
|
(cancel-timer org-indent-initial-timer))
|
|
|
|
(when (markerp org-indent-initial-marker)
|
|
|
|
(set-marker org-indent-initial-marker nil))
|
|
|
|
(when (boundp 'org-hide-leading-stars-before-indent-mode)
|
|
|
|
(org-set-local 'org-hide-leading-stars
|
|
|
|
org-hide-leading-stars-before-indent-mode))
|
|
|
|
(setq buffer-substring-filters
|
|
|
|
(delq 'org-indent-remove-properties-from-string
|
|
|
|
buffer-substring-filters))
|
|
|
|
(remove-hook 'after-change-functions 'org-indent-refresh-maybe 'local)
|
|
|
|
(remove-hook 'before-change-functions
|
|
|
|
'org-indent-notify-modified-headline 'local)
|
|
|
|
(org-with-wide-buffer
|
|
|
|
(org-indent-remove-properties (point-min) (point-max)))
|
|
|
|
(and font-lock-mode (org-restart-font-lock))
|
|
|
|
(redraw-display))))
|
2009-06-30 05:24:57 +00:00
|
|
|
|
|
|
|
(defface org-indent
|
|
|
|
(org-compatible-face nil nil)
|
|
|
|
"Face for outline indentation.
|
|
|
|
The default is to make it look like whitespace. But you may find it
|
2009-11-12 12:39:29 +00:00
|
|
|
useful to make it ever so slightly different."
|
2009-06-30 05:24:57 +00:00
|
|
|
:group 'org-faces)
|
|
|
|
|
|
|
|
(defun org-indent-indent-buffer ()
|
|
|
|
"Add indentation properties for the whole buffer."
|
|
|
|
(interactive)
|
2011-02-27 14:52:36 +00:00
|
|
|
(if (not (org-mode-p))
|
|
|
|
(error "Buffer major mode must be Org")
|
2011-07-21 14:14:58 +00:00
|
|
|
(message "Setting buffer indentation. It may take a few seconds...")
|
2011-02-27 14:52:36 +00:00
|
|
|
(org-with-wide-buffer
|
2011-07-21 14:20:26 +00:00
|
|
|
(org-indent-remove-properties (point-min) (point-max))
|
|
|
|
(org-indent-add-properties (point-min) (point-max)))
|
2011-07-21 14:14:58 +00:00
|
|
|
(message "Indentation of buffer set.")))
|
2009-06-30 05:24:57 +00:00
|
|
|
|
2011-02-27 14:52:36 +00:00
|
|
|
(defsubst org-indent-remove-properties (beg end)
|
2009-06-30 05:24:57 +00:00
|
|
|
"Remove indentations between BEG and END."
|
2011-07-24 08:27:23 +00:00
|
|
|
(with-silent-modifications
|
|
|
|
(remove-text-properties beg end '(line-prefix nil wrap-prefix nil))))
|
2009-06-30 05:24:57 +00:00
|
|
|
|
|
|
|
(defun org-indent-remove-properties-from-string (string)
|
2011-07-06 18:49:55 +00:00
|
|
|
"Remove indentation properties from STRING."
|
2009-06-30 05:24:57 +00:00
|
|
|
(remove-text-properties 0 (length string)
|
|
|
|
'(line-prefix nil wrap-prefix nil) string)
|
|
|
|
string)
|
|
|
|
|
2011-07-21 14:20:26 +00:00
|
|
|
(defun org-indent-initialize-buffer ()
|
|
|
|
"Set virtual indentation for the whole buffer asynchronously."
|
|
|
|
(when (and org-indent-mode (not org-indent-initial-lock))
|
|
|
|
(org-with-wide-buffer
|
|
|
|
(setq org-indent-initial-lock t)
|
|
|
|
(let ((interruptp
|
|
|
|
;; Always nil unless interrupted.
|
|
|
|
(catch 'interrupt
|
|
|
|
(and org-indent-initial-marker
|
|
|
|
(marker-position org-indent-initial-marker)
|
|
|
|
(org-indent-add-properties org-indent-initial-marker
|
|
|
|
(point-max) t)
|
|
|
|
nil))))
|
|
|
|
(move-marker org-indent-initial-marker interruptp)
|
|
|
|
;; Job is complete: stop idle timer.
|
|
|
|
(unless interruptp (cancel-timer org-indent-initial-timer))))
|
|
|
|
(setq org-indent-initial-lock nil)))
|
|
|
|
|
|
|
|
(defun org-indent-add-properties (beg end &optional async)
|
|
|
|
"Add indentation properties between BEG and END.
|
|
|
|
|
|
|
|
If ASYNC is non-nil, allow to interrupt the process. This is
|
|
|
|
done by throwing the `interrupt' tag along with the buffer
|
|
|
|
position where the process stopped. Be sure to catch this tag if
|
|
|
|
you want to use this feature."
|
|
|
|
(save-match-data
|
|
|
|
(org-with-wide-buffer
|
|
|
|
(goto-char beg)
|
|
|
|
(beginning-of-line)
|
|
|
|
;; 1. Initialize prefix at BEG. This is done by storing two
|
|
|
|
;; variables: INLINE-PF and PF, representing respectively
|
|
|
|
;; length of current `line-prefix' when line is inside an
|
|
|
|
;; inline task or not.
|
|
|
|
(let* ((case-fold-search t)
|
|
|
|
(limited-re (org-get-limited-outline-regexp))
|
|
|
|
(added-ind-per-lvl (1- org-indent-indentation-per-level))
|
|
|
|
(pf (save-excursion
|
|
|
|
(and (ignore-errors (let ((outline-regexp limited-re))
|
|
|
|
(org-back-to-heading t)))
|
|
|
|
(+ (* org-indent-indentation-per-level
|
|
|
|
(- (match-end 0) (match-beginning 0) 2)) 2))))
|
|
|
|
(pf-inline (and (featurep 'org-inlinetask)
|
|
|
|
(org-inlinetask-in-task-p)
|
|
|
|
(+ (* org-indent-indentation-per-level
|
|
|
|
(1- (org-inlinetask-get-task-level))) 2)))
|
|
|
|
(set-prop-and-move
|
|
|
|
(function
|
|
|
|
;; Set prefix properties `line-prefix' and `wrap-prefix'
|
|
|
|
;; in current line to, respectively, length L and W and
|
2011-07-21 17:02:35 +00:00
|
|
|
;; move forward. If H is non-nil, `line-prefix' will be
|
|
|
|
;; starred. If H is `inline', the first star will have
|
|
|
|
;; `org-warning' face. Assume point is at bol.
|
2011-07-21 14:20:26 +00:00
|
|
|
(lambda (l w h)
|
2011-07-21 17:02:35 +00:00
|
|
|
(let ((line (cond
|
|
|
|
((eq 'inline h)
|
|
|
|
(let ((stars (aref org-indent-stars
|
|
|
|
(min l org-indent-max-levels))))
|
|
|
|
(and stars
|
|
|
|
(concat org-indent-inlinetask-first-star
|
|
|
|
(substring stars 1)))))
|
|
|
|
(h (aref org-indent-stars
|
|
|
|
(min l org-indent-max-levels)))
|
|
|
|
(t (aref org-indent-strings
|
|
|
|
(min l org-indent-max)))))
|
2011-07-21 14:20:26 +00:00
|
|
|
(wrap (aref org-indent-strings (min w org-indent-max))))
|
|
|
|
(add-text-properties (point) (point-at-eol)
|
|
|
|
`(line-prefix ,line wrap-prefix ,wrap)))
|
|
|
|
(forward-line 1)))))
|
|
|
|
;; 2. For each line, set `line-prefix' and `wrap-prefix'
|
|
|
|
;; properties depending on the type of line (headline, inline
|
|
|
|
;; task, item or other).
|
2011-07-24 08:27:23 +00:00
|
|
|
(with-silent-modifications
|
|
|
|
(while (< (point) end)
|
|
|
|
(cond
|
|
|
|
;; When in async mode, check if interrupt is required.
|
|
|
|
((and async (input-pending-p)) (throw 'interrupt (point)))
|
|
|
|
;; Empty line: do nothing.
|
|
|
|
((eolp) (forward-line 1))
|
|
|
|
;; Headline or inline task.
|
|
|
|
((looking-at org-outline-regexp)
|
|
|
|
(let* ((nstars (- (match-end 0) (match-beginning 0) 1))
|
|
|
|
(line (* added-ind-per-lvl (1- nstars)))
|
|
|
|
(wrap (+ line (1+ nstars))))
|
|
|
|
(cond
|
|
|
|
;; Headline: new value for PF.
|
|
|
|
((looking-at limited-re)
|
|
|
|
(funcall set-prop-and-move line wrap t)
|
|
|
|
(setq pf wrap))
|
|
|
|
;; End of inline task: PF-INLINE is now nil.
|
|
|
|
((looking-at "\\*+ end[ \t]*$")
|
|
|
|
(funcall set-prop-and-move line wrap 'inline)
|
|
|
|
(setq pf-inline nil))
|
|
|
|
;; Start of inline task. Determine if it contains text,
|
|
|
|
;; or is only one line long. Set PF-INLINE accordingly.
|
|
|
|
(t (funcall set-prop-and-move line wrap 'inline)
|
|
|
|
(setq pf-inline (and (org-inlinetask-in-task-p) wrap))))))
|
|
|
|
;; List item: `wrap-prefix' is set where body starts.
|
|
|
|
((org-at-item-p)
|
|
|
|
(let* ((line (or pf-inline pf 0))
|
|
|
|
(wrap (+ (org-list-item-body-column (point)) line)))
|
|
|
|
(funcall set-prop-and-move line wrap nil)))
|
|
|
|
;; Normal line: use PF-INLINE, PF or nil as prefixes.
|
|
|
|
(t (let* ((line (or pf-inline pf 0))
|
|
|
|
(wrap (+ line (org-get-indentation))))
|
|
|
|
(funcall set-prop-and-move line wrap nil))))))))))
|
2009-06-30 05:24:57 +00:00
|
|
|
|
2011-07-23 12:25:27 +00:00
|
|
|
(defun org-indent-notify-modified-headline (beg end)
|
|
|
|
"Set `org-indent-modified-headline-flag' depending on the current command.
|
2009-06-30 05:24:57 +00:00
|
|
|
|
2011-02-27 14:52:36 +00:00
|
|
|
BEG and END are the positions of the beginning and end of the
|
|
|
|
range of deleted text.
|
2009-06-30 05:24:57 +00:00
|
|
|
|
2011-02-27 14:52:36 +00:00
|
|
|
This function is meant to be called by `before-change-functions'.
|
2011-07-21 14:20:26 +00:00
|
|
|
Flag will be non-nil if command is going to modify or delete an
|
|
|
|
headline."
|
|
|
|
(when org-indent-mode
|
|
|
|
(setq org-indent-modified-headline-flag
|
|
|
|
(save-excursion
|
|
|
|
(goto-char beg)
|
|
|
|
(save-match-data
|
|
|
|
(or (and (org-at-heading-p) (< beg (match-end 0)))
|
|
|
|
(re-search-forward org-outline-regexp-bol end t)))))))
|
2011-02-27 14:52:36 +00:00
|
|
|
|
|
|
|
(defun org-indent-refresh-maybe (beg end dummy)
|
|
|
|
"Refresh indentation properties in an adequate portion of buffer.
|
|
|
|
BEG and END are the positions of the beginning and end of the
|
|
|
|
range of inserted text. DUMMY is an unused argument.
|
|
|
|
|
|
|
|
This function is meant to be called by `after-change-functions'."
|
2009-06-30 05:24:57 +00:00
|
|
|
(when org-indent-mode
|
2011-02-27 14:52:36 +00:00
|
|
|
(save-match-data
|
2011-07-23 12:25:27 +00:00
|
|
|
;; If an headline was modified or inserted, set properties until
|
|
|
|
;; next headline.
|
|
|
|
(if (or org-indent-modified-headline-flag
|
|
|
|
(save-excursion
|
|
|
|
(goto-char beg)
|
|
|
|
(re-search-forward org-outline-regexp-bol end t)))
|
2011-02-27 14:52:36 +00:00
|
|
|
(let ((end (save-excursion
|
2011-07-23 12:25:27 +00:00
|
|
|
(goto-char end)
|
|
|
|
(org-with-limited-levels (outline-next-heading))
|
|
|
|
(point))))
|
|
|
|
(setq org-indent-modified-headline-flag nil)
|
|
|
|
(org-indent-add-properties beg end))
|
|
|
|
;; Otherwise, only set properties on modified area.
|
|
|
|
(org-indent-add-properties beg end)))))
|
2009-06-30 05:24:57 +00:00
|
|
|
|
|
|
|
(provide 'org-indent)
|
|
|
|
|
|
|
|
;;; org-indent.el ends here
|