From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emanuel Evans Subject: Re: bug#21818: 24.5; org-set-tags-to indentation problems when called programmatically Date: Sun, 15 Nov 2015 19:58:54 -0800 Message-ID: <87egfq7fy9.fsf@gmail.com> References: <87r3k7prms.fsf@cersei.i-did-not-set--mail-host-address--so-tickle-me> <83h9l3w1di.fsf@gnu.org> <87bnbbvtkm.fsf@emanuel.industries> <83mvuuvm6j.fsf@gnu.org> <87mvutwa8o.fsf@emanuel.industries> <87d1vo277y.fsf@nicolasgoaziou.fr> <87r3k4ofa9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyAwk-00078j-AW for emacs-orgmode@gnu.org; Sun, 15 Nov 2015 22:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyAwf-0008Jk-BH for emacs-orgmode@gnu.org; Sun, 15 Nov 2015 22:59:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:33993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyAwf-0008Jc-4M for emacs-orgmode@gnu.org; Sun, 15 Nov 2015 22:59:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZyAwb-0004ng-10 for emacs-orgmode@gnu.org; Mon, 16 Nov 2015 04:59:05 +0100 Received: from c-73-162-103-83.hsd1.ca.comcast.net ([73.162.103.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2015 04:59:05 +0100 Received: from mail by c-73-162-103-83.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2015 04:59:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Nicolas Goaziou writes: > > Fixed in d5767ad. Hi! It looks like it's fixed for `org-insert-link', but I ran across a similar bug with `org-element-interpret-data' that seems to be not entirely fixed: (defun good-indent () (interactive) (insert (org-element-interpret-data `(headline (:level 1 :title "something" :tags ("foo")))))) (defun bad-indent () (interactive) (insert (org-element-interpret-data `(headline (:level 1 :title ((link (:raw-link "http://www.example.com/foo/bar/baz/qux/abc123f56789") "something")) :tags ("foo")))))) `good-indent' looks like: * something :foo: With org-mode 8.2.10, `bad-indent' looks like: * something :foo: With the latest master version of org-mode (d6aafd7), `bad-indent' looks like: * something :foo: (i.e., "almost but still not quite right"). I'm not very familiar with the org-element internals, but is there any way to work around this for 8.2.10? (I'm writing a library that I'd like to be compatible with Emacs 24.5.) Thanks so much!