From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: org-ctrl-c-ctrl-c in comments Date: Tue, 08 Dec 2015 21:31:18 +0000 Message-ID: <87lh94pqzd.fsf@mat.ucm.es> References: <87zixlkzde.fsf@mat.ucm.es> <87fuzclvcm.fsf@mat.ucm.es> <877fkokfu9.fsf@alphaville.usersys.redhat.com> <87zixkkfl2.fsf@mat.ucm.es> <8737vckcwf.fsf@alphaville.usersys.redhat.com> <87r3iwkbd9.fsf@mat.ucm.es> <87lh94pwnk.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6PrA-0007wg-6v for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 16:31:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Pr7-0000IW-0n for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 16:31:32 -0500 Received: from plane.gmane.org ([80.91.229.3]:33751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Pr6-0000IQ-RC for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 16:31:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6Pr5-0004dJ-Ne for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 22:31:27 +0100 Received: from 171.pool85-55-19.dynamic.orange.es ([85.55.19.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 22:31:27 +0100 Received: from oub by 171.pool85-55-19.dynamic.orange.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 22:31:27 +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 >>> "Nick" == Nick Dokos writes: > Uwe Brauer writes: >> > Uwe Brauer writes: >> >> > Indeed - org-at-table-p gives nil if the table is inside >> > a comment or inside a source block (or inside any other block >> > afaict). >> >> Well, how could this behavior be changed? I found it quite cumbersome. > Well, I'm not an expert on org syntax but reading the comments of > org-element.el, I see I was wrong about the other blocks: "greater > elements" can contain other elements (e.g. tables). The list of > "greater elements" given there is > ,---- > | ;; Element containing other elements (and only elements) are called > | ;; greater elements. Concerned types are: `center-block', `drawer', > | ;; `dynamic-block', `footnote-definition', `headline', `inlinetask', > | ;; `item', `plain-list', `property-drawer', `quote-block', `section' > | ;; and `special-block'. > `---- > So center-blocks, quote-blocks and special blocks allow the table to > be recognized as a table, whereas comment-blocks, src-blocks and > verse-blocks do not. Ok, thanks for clarifying this. I try to convince Nicolas to customize this behavior, such that comment-blocks could be greater elements. > Nicolas et al. will surely correct any (more) mistakes in this.