emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Federico Beffa <beffa@ieee.org>
Cc: Bastien <bzg@gnu.org>, emacs-orgmode@gnu.org
Subject: Re: proposal for improved integration of cdlatex
Date: Wed, 30 Jul 2014 22:25:59 +0200	[thread overview]
Message-ID: <87wqaur3u0.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAKrPhPOixEp3g5gR45zst11LQfO_urDF+wyVjyZrM4fC-gA4JA@mail.gmail.com> (Federico Beffa's message of "Wed, 30 Jul 2014 21:48:13 +0200")

Hello,

Federico Beffa <beffa@ieee.org> writes:

> +  (save-excursion
> +    (org-mark-element)
> +    (org-indent-region (point) (mark))))

The function shouldn't set the mark. The following should be enough:


  (let ((element (org-element-at-point)))
    (when element
      (org-indent-region (org-element-property :begin element)
                         (org-element-property :end element))))


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-07-30 20:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-25 16:31 Federico Beffa
2014-07-28 14:44 ` Bastien
2014-07-29  7:24   ` Federico Beffa
2014-07-29 14:28     ` Bastien
2014-07-29 14:44       ` Federico Beffa
2014-07-29 14:54         ` Bastien
2014-07-30 19:48           ` Federico Beffa
2014-07-30 20:25             ` Nicolas Goaziou [this message]
2014-07-31  9:12               ` Federico Beffa
2014-08-08 16:23 Federico Beffa
2014-08-09  7:54 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqaur3u0.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=beffa@ieee.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: proposal for improved integration of cdlatex' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).