From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain.Cochard@unistra.fr Subject: How to elegantly and effectively quote org fragments? Date: Thu, 21 May 2015 00:20:24 +0200 Message-ID: <21853.2216.358897.903242@frac.u-strasbg.fr> Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvCLs-0006b5-Az for emacs-orgmode@gnu.org; Wed, 20 May 2015 18:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvCLo-0008Up-Up for emacs-orgmode@gnu.org; Wed, 20 May 2015 18:20:36 -0400 Received: from mailhost.u-strasbg.fr ([130.79.222.218]:52776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvCLo-0008UU-Nn for emacs-orgmode@gnu.org; Wed, 20 May 2015 18:20:32 -0400 Received: from mailhost.u-strasbg.fr (localhost [127.0.0.1]) by antispam (Postfix) with ESMTP id BC86A221DBB for ; Thu, 21 May 2015 00:20:29 +0200 (CEST) Received: from mailhost.u-strasbg.fr (localhost [127.0.0.1]) by antivirus (Postfix) with ESMTP id ACB7C221DCC for ; Thu, 21 May 2015 00:20:29 +0200 (CEST) Received: from lmr.u-strasbg.fr (lmr4.u-strasbg.fr [172.30.21.4]) by mr8.u-strasbg.fr (Postfix) with ESMTP id 9B3E7221DBB for ; Thu, 21 May 2015 00:20:28 +0200 (CEST) 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 Cc: Alain Cochard Hello. So far, the main motivation for me is to be able to insert into an org file some org fragments found on the Internet, without their interacting with the org file. Sorry if these are easy questions -- I did spend time with the manual, the FAQ, the list archive, and the web. The best I found is to use an org SRC block, but I do not find it satisfactory. Plus I cannot even have it work properly. (1) Say I have have this in my org file (star in 1st column): * a regular headline: writing org examples #+BEGIN_SRC org ,* a headline only for the example ,** a subheadline text #+END_SRC Is it the best that one can do to quote some org code? Since I use (org-startup-indented t), I would expect to have the corresponding indentation. Also, if not possible to avoid the escaping commas, I would like to at least have them for each line, not only for the headlines. So I would like something like this: * a regular headline: writing org examples #+BEGIN_SRC org ,* a headline only for the example , * a subheadline , text #+END_SRC Is (some of) this at all doable? (2) Now, if in the org edit buffer I do 'C-c C-d' (org-deadline), insert a DEADLINE:, and go back to my org file, the block now looks like: #+BEGIN_SRC org ,* a headline only for the example ,** a subheadline DEADLINE: <2015-05-21 Thu> text #+END_SRC If I do 'M-x org-agenda RET a', I get the following line in the Org agenda buffer: todo: Deadline: a regular headline: writing org examples Is this normal? Since the deadline is part of the block, I would expect no entry in the agenda; I tried to escape the DEADLINE with a comma, but it does not change anything. So, is there a way to *quote* a DEADLINE:, i.e., without having an associated entry in the agenda? Thank you for your help. [8.2.10 (8.2.10-40-gc763fa-elpa @ /home/cochard/.emacs.d/elpa/org-20150518/)] GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.12) of 2015-04-17 on buildvm-04.phx2.fedoraproject.org