From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CD+IF6Mv/WBy/wAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 11:32:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +MhEE6Mv/WC6TwAA1q6Kng (envelope-from ) for ; Sun, 25 Jul 2021 09:32:19 +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 04F4D2B34B for ; Sun, 25 Jul 2021 11:32:19 +0200 (CEST) Received: from localhost ([::1]:49254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7aUc-0002cE-11 for larch@yhetil.org; Sun, 25 Jul 2021 05:32:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7aU4-0002c0-6B for emacs-orgmode@gnu.org; Sun, 25 Jul 2021 05:31:45 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:45998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7aU2-0007hO-F1 for emacs-orgmode@gnu.org; Sun, 25 Jul 2021 05:31:43 -0400 Received: by mail-pj1-x1031.google.com with SMTP id m10-20020a17090a34cab0290176b52c60ddso3899806pjf.4 for ; Sun, 25 Jul 2021 02:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:message-id :in-reply-to:mime-version; bh=R0Q0PAtk4LI54KgCy+ProBgLafwJLdesQPhf34dXAjs=; b=ShKtmavav4l2Y6IbdkYkiTQNWJautLzHiolQQKNMT9hMQaiNzJJL5v7b+7Z6p30bUY y6h2dnqqsi9vDInP8Q+mqoozi4zB19A5+Y+DOmO09WuO1UL9Ejq63zd7WMIG/HyB+Csn VHxbnv+X+NWJgtJ1oez5VORvMfXix26qnAl9mvNToJF75dlzAvVdd/xnaARLZpKTMLDD 150613Puk3b5Uf+YHc0w+onEyjalkYilIP4kDpOVospupKcVfUXTBz65zP/XHVxv9rSw VoUR4BFudX3JSmd0TXjdsRgKUPBiiJbq/PTHJksSNCS+8EU91fWuNCr78JwXOnUpV1f5 umqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :message-id:in-reply-to:mime-version; bh=R0Q0PAtk4LI54KgCy+ProBgLafwJLdesQPhf34dXAjs=; b=D97DUaI3c5af3qwuejhzBBkTwR9wK7J282vVeOIKJ2RD1GkQzbM6j5H7ZbduaTPwVP FmHVMAHn1htg6gL+/FFtnFRJPJ9dTrgsdhGkj3M4L/v8kEngpEAhUXbmyAH8li556ffF yadQH17Ei4jGTd0iz/hY1DwMy8QHWEjNLZziW0qMqV7zeTOdttdsqKOU0/vcgeUKAsQV Oxqcr2PRHxBMScd1bNXgCj+ORT/zckga/X9pci0CN4mXABw9CyA0y6hIJcE4bM29pt2v pyYDFoQcedcKHhQ4cu+m9JoOkZV3B+6MvdLHagTOONtMh4jaM6ecDqTrm46YDlyDjeAH 8qmg== X-Gm-Message-State: AOAM531pFKDJLGpqQ96zN9mP6mhnUB3+IxGq8s2RVBLHAWayDydZsLmR 8+3XkvkhM2NyrKpT013WNlK1eY5MjxU= X-Google-Smtp-Source: ABdhPJx6PEmDhfbpNTSutveNE48mnHvHEpwBkEULpOr9H+H/BbamIa7gJnA2PmzZiheJC5N03+bohQ== X-Received: by 2002:a62:7b86:0:b029:32b:364a:e7e4 with SMTP id w128-20020a627b860000b029032b364ae7e4mr12640238pfc.49.1627205500278; Sun, 25 Jul 2021 02:31:40 -0700 (PDT) Received: from tim-desktop (220-235-27-130.dyn.iinet.net.au. [220.235.27.130]) by smtp.gmail.com with ESMTPSA id p53sm38942719pfw.168.2021.07.25.02.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 02:31:39 -0700 (PDT) References: <871r7ngrzt.fsf@gmail.com> User-agent: mu4e 1.5.14; emacs 28.0.50 From: Tim Cross To: Arthur Miller Subject: Re: Helo for defun/macro arguments list in minibuffer when in org-babel src blocks? Date: Sun, 25 Jul 2021 19:03:55 +1000 Message-ID: <874kciivu6.fsf@gmail.com> In-reply-to: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Cc: emacs-orgmode@gnu.org 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=1627205539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=R0Q0PAtk4LI54KgCy+ProBgLafwJLdesQPhf34dXAjs=; b=J/HMzDAht1zFD8FXrtjzJa5X35QcZO9L7rWyjsFF9YvoIPPafkxgIDj79MJ/2pcRnqLrjZ YDDgizjqPuYeDKFMJy/5QT5mSQe1oRcZKBNrdkImNfliebbHYMGErRcquhEEqpGRegyPzC Yig23AkhvuILJaRGTXLpkqMSfkIe60dvtxrXKpUanimCwKDEOUFlrkEaz2qMTuHcyQODTO TTcmJlG+nzfsTnPa4cqjIWjzK/TX1q6LcGoyw3sjT3bEwAjIgO3zGPPmq+2xo/X5TSzZ3i j0dqONj9zpshA+mABz9ZR+d/ccDAU7zyhmoIm/Q/nNjFkFgUTFl4Em8JhPrQSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627205539; a=rsa-sha256; cv=none; b=YyKMGUzRv3Q4qOvRbNeA1ZvU4R3Ad5JSs8la+eI0rR4X2owqvUlNFt/bfSqHYAtCbJWViq rUdWGbdZXkWjoPCLCsDMCKLxzFgigSRXsxFNG62hu/j7cJFIuWAy+T/rFXEtp+7+RK0QFV WQsMGtfnXCpKeJ0Z6v+6bqKgVk2wML5Lohwjc9eRa/NCGfNn1bKrnn8LXEtjsYuQk0hrpH P1XunYujFcuLsTJfs66dJePF1q9f2ZthsgT+sAar6Ckf4ltH+coVYJWKY2Jj6G+3cnRqs8 q5sc5Vxpl6LxCAqddhMVl13OH8EM3rBRSHlWlKEbBqRm0rqsNFics0BpE/ohBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ShKtmava; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ShKtmava; dmarc=pass (policy=none) header.from=gmail.com; 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: 04F4D2B34B X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1KIu9lBMT9D0 Arthur Miller writes: > Tim Cross writes: > >> Hi, >> >> when you are editing source blocks are you using org-edit-special, normally >> bound to C-c ') or are you just editing the source blocks directly within the >> org buffer? > No I don't narrow. Note that org-edit-special isn't really narrowing. Rather, it opens a new buffer (there are options to control how it does this i.e. replace org buffer, split to open in new buffer, open in new frame etc) which puts the source block into the native mode for the language being edited. For example, if your editing an emacs-lisp block, the edit special buffer will be in emacs-lisp-mode and will have all the facilities you would normally have when opening an emacs lisp file. What it sounds like you want to do is just have all the (for example) emacs-lisp mode and associated minor modes activated when your cursor is within a source block within the org buffer. This is extremely difficult to. Part of the problem is that modes like emacs-lisp-mode are designed to operate on buffers. There are some 'special' packages, like mmm-mode which try to support this type of functionality, but to be honest, I've never found them very good and they often have significant performance problems. Of course, this is emacs and you can probably get something mostly working, but it will take considerable effort and may well have performance hits as well as other unexpected side effects. I think your definitely 'swimming against the flow' and suspect that in the end, you will spend far more time trying to maintain your hacks rather than actually focusing on the work you want to get done. I originally went down a similar path, but then realised, it was much easier just to get use to using org-edit-special and focus on getting that to work just how I like it. Now, I don't even notice/think about it. I just hit the key to open the buffer, edit it and then exit. I have it setup so that the original org buffer is still displayed, so I can see/scroll the org buffer in case I need to reference other information in the buffer etc. All the bits I want work just like they do when I edit 'native' buffers for the language being edited (syntax, indentation, snippets/completion, symbol/documentation lookup etc). Anyway, good luck.