emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: Open all #+INCLUDED:d files?
Date: Fri, 12 Dec 2014 12:40:12 +0100	[thread overview]
Message-ID: <m2k31xayg3.fsf@krugs.de> (raw)
In-Reply-To: <874mt1yv2j.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 12 Dec 2014 12:19:16 +0100")

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

Rasmus <rasmus@gmx.us> writes:

> Rainer M Krug <Rainer@krugs.de> writes:
>
>> Is there an easy way of opening all INCLUDEd files in an org document,
>> i.e. a single command or an easy way of doing it via some elisp code?
>
> Oh, sorry, I didn't see the "all".

No problem - so I learned about C-c & - very useful.

> But yeah, it should be easy with org-element-map.  Map over all
> keywords, ensure they are INCLUDE keywords, move point to their :begin
> and call org-edit-special or similar.  You could use save-excursion,
> save-window-excursion to make it not suck.  You'd might have to widen
> first, then you could use save-restriction.

OK - I might look into it when I get to annoyed by the manual approach.

Thanks,

Rainer


>
> Hope it helps,
> Ramsus

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

  reply	other threads:[~2014-12-12 11:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12  9:08 Open all #+INCLUDED:d files? Rainer M Krug
2014-12-12 11:14 ` Rasmus
2014-12-12 11:19 ` Rasmus
2014-12-12 11:40   ` Rainer M Krug [this message]
2014-12-12 17:35     ` Nick Dokos
2014-12-12 18:07       ` Nicolas Goaziou
2014-12-12 18:13         ` Rasmus

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=m2k31xayg3.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).