From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SM3GB16z0WCPOwAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 11:54:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OBXiAl6z0WDjbgAAB5/wlQ (envelope-from ) for ; Tue, 22 Jun 2021 09:54:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 654C61FFFC for ; Tue, 22 Jun 2021 11:54:37 +0200 (CEST) Received: from localhost ([::1]:59950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvd75-0007Dt-4X for larch@yhetil.org; Tue, 22 Jun 2021 05:54:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvd6f-0007DU-IR for emacs-orgmode@gnu.org; Tue, 22 Jun 2021 05:54:09 -0400 Received: from ciao.gmane.io ([116.202.254.214]:36758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvd6d-0007Bb-KO for emacs-orgmode@gnu.org; Tue, 22 Jun 2021 05:54:09 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lvd6b-0000Xe-OH for emacs-orgmode@gnu.org; Tue, 22 Jun 2021 11:54:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Karl Voit Subject: Feature request: M-u M-x org-babel-mark-block -> mark block including block definition Date: Tue, 22 Jun 2021 11:53:58 +0200 Organization: www.karl-voit.at Message-ID: <2021-06-22T11-28-28@devnull.Karl-Voit.at> User-Agent: slrn/1.0.3 (Linux) X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, GAPPY_SUBJECT=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Karl Voit Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624355677; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=hhtDJjp2F2v9Dk2XgtSTO8TqrUOL9QMShVGPTfVA7wg=; b=qhMneuL9YQExiW3gng5g91dE0jmSzoguJf+g896v6l8lajaHHGwY5e11763c+3UK9NFDFQ veSq0rCdBrdzoLQ6klW39TLLZj5/zTfOPquN1+o7VPWuPJqJnbks7LMxebw/R2GtlmUDfM 6m/ZIz3Yd5d7iJyK/pF3T7rhGthjEaUnc4Tnl0rJ+hrRr5iA41n6m5ZS/BolCI/kF6hKEi ucAAK1TCqKAVGu4Ajt5jiLhMP8gX44EXKWVWHL18LS/q36uN2fc/1LxXRv+28OxHdoFjN7 U6JToxKJmAqTBPIPi5deKTZug79lzMnpwDFKZDeyXUEeyENvxjfh1NTWgx2qyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624355677; a=rsa-sha256; cv=none; b=RKuzOPU4qS2JN26MAqm9Rp80GPa9z+Rf9U5ups+eTEMDfDsmQN0Zgb1+22swaIDr+SfA4D WzAk0vmqpwljJdWHPq/Wz/wUL51u9T0OXXmvMlyVPcB/5AqToAKIZcWXLw1SY205b2UQeY 8QPKugk/XNI3FbU371+V/Wb3lN2NMPKTPkNxx8l9zvqo5VF6c29WryQtG2WC82q/0XOhmL yOs3vTEh76Lddne7WBvCHPUDMFu0AUiXd9foZK4vIxqdSCdiUL5RdLp9dytgdwrtxMTjsE ioMlGo517jsXme7Qol0TypiM1UaBho/e5eOCiAofknY/uPZFNBYpJWD2KLxCgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 654C61FFFC X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: 05SiJY61xdSx Hi, I'd like to propose a new universal argument functionality for org-babel-mark-block: it should mark the block content (as without universal argument) and the whole block definition as well. Current behavior with and without universal argument: #+NAME: my-example #+BEGIN_SRC python print('hello world!') <-- marked #+END_SRC Proposed behavior: Without universal argument: #+NAME: my-example #+BEGIN_SRC python print('hello world!') <-- marked #+END_SRC With universal argument: #+NAME: my-example <-- marked #+BEGIN_SRC python <-- marked print('hello world!') <-- marked #+END_SRC <-- marked Personal background/motivation: I often add blocks of all kind to list items: - foobar #+BEGIN_SRC python print('hello world!') <-- marked #+END_SRC This enables me to collapse and expand the list item together with the block. So far, my process of adding a block to a list item was: - create list item - press RET (which goes to column 1, not the indented list column) - create the block (by using custom yankpad snippets, simulating the outdated quick templates(?) with, e.g., THIS should be addressed here - move block to the right to match the desired column - so far, I'm using "C-x r t SPC SPC RET" but I should switch to indent-rigidly which I covered on https://karl-voit.at/2021/04/10/GLT21-emacs-org-features/ -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/