From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-ctrl-c-ctrl-c in comments Date: Tue, 08 Dec 2015 14:28:47 -0500 Message-ID: <87lh94pwnk.fsf@alphaville.usersys.redhat.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Nwj-0007bE-Rn for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 14:29:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6NwX-0005u9-Dg for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 14:29:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:54599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6NwX-0005tb-6d for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 14:28:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6NwV-00021L-RI for emacs-orgmode@gnu.org; Tue, 08 Dec 2015 20:28:55 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 20:28:55 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 20:28:55 +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 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. Nicolas et al. will surely correct any (more) mistakes in this. -- Nick