From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sJKKHpiv/GBMLAAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 02:26:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QNwAGpiv/GAPGAAAB5/wlQ (envelope-from ) for ; Sun, 25 Jul 2021 00:26:00 +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 CC13F2910 for ; Sun, 25 Jul 2021 02:25:59 +0200 (CEST) Received: from localhost ([::1]:44574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7Rxu-0005bF-97 for larch@yhetil.org; Sat, 24 Jul 2021 20:25:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7RxW-0005b4-HH for emacs-orgmode@gnu.org; Sat, 24 Jul 2021 20:25:34 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:47005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7RxT-0006TI-1m for emacs-orgmode@gnu.org; Sat, 24 Jul 2021 20:25:34 -0400 Received: by mail-pl1-x634.google.com with SMTP id t21so7308356plr.13 for ; Sat, 24 Jul 2021 17:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:references:user-agent:in-reply-to :mime-version:content-disposition; bh=NJWBBDqJ/KYLVwLX4r9IyvrzX8n+QQzwIagWZLhCyFU=; b=AUtS4Rt4BvSBIGFlIH2EELpYQll7ZiHOdT4CK5EP/rXDHB7AlEOnsoUHpGcC3Hydj5 7RitgJXAEmu2X5e+g4UkWsZom6YQNUWbyY4hcc6LydF8orbe/8mkX7zjDjcdGQ5ZsnFG eNOMtDfdt3DVIufVRCREZxuaJwDFZVewATqX01yShk7EHoc7o8a9eV1wEJ5vkcv9NDd3 73fntwx1FWO+ygtz+6UaN3zxYwpceBnPHRWVr1QaDTGoQ3B1m1dbbLiejN5g7BmMWK+w zMsvvSPMcnkqReZK0OUGzvlzP/ETNrbLaO9yY31EsFdvau/EiI4TiseI3Gtaz7qkxrmO u5FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:references :user-agent:in-reply-to:mime-version:content-disposition; bh=NJWBBDqJ/KYLVwLX4r9IyvrzX8n+QQzwIagWZLhCyFU=; b=rts2VK6tv41W3u+gJiCOhaPPKbjszh2uaPoUl1x+dzIVLfe5YPUxVRhaw82S4NpEyW RUjM+g0Y3DAS/tJAfRCjHVFMWB/OK6rO+C0l/7xe8eMig2R6KnPlPtr4zm9SwyzmwGfn aR3iGhMYL9Gb8Y368fpnhRTwzZmFVQ7rQhPeWC0s9fsZT2iRfZDEuGDoJHRkid2DufJ/ pFQZDrx00cVGBFIFNWS+MWdtCsY17g2Wyrwyv9rDmxT9f8eMYEmfYukmpNj3K5wf5P/3 yRDqHzSlTmzPRz9JSYMv3+x/OBJo+3m7G1sMVuV/rVjTAvBSn1sSdIKTkyzBK8MaW/IY G6Tw== X-Gm-Message-State: AOAM530CgafFNefkK45zM4e7vAFoiNFjOFI0kCSkLjEtgEao7M6vDLKA gm9S37k9IoScnpDW/JNJDGeVjWbUl1g= X-Google-Smtp-Source: ABdhPJwTTgCT/e+5ppvqk0TTtvG3k6kAoA6B7cCnB1t5WEfv43fDWzkedo6XEvIqGQYQGOes5zwz6A== X-Received: by 2002:a63:110c:: with SMTP id g12mr11441081pgl.139.1627172727325; Sat, 24 Jul 2021 17:25:27 -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 c24sm45365621pgj.11.2021.07.24.17.25.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 17:25:27 -0700 (PDT) From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: Helo for defun/macro arguments list in minibuffer when in org-babel src blocks? Date: Sun, 25 Jul 2021 10:05:05 +1000 Message-ID: <871r7ngrzt.fsf@gmail.com> References: User-agent: mu4e 1.5.14; emacs 28.0.50 In-reply-to: MIME-Version: 1.0 Content-Type: text/plain; format=flowed Content-Disposition: inline Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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, URI_DOTEDU=1.348 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: , 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=1627172759; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=NJWBBDqJ/KYLVwLX4r9IyvrzX8n+QQzwIagWZLhCyFU=; b=SX1Tyl8bOhL66NgyF60XrhLFJRQYIHjQqgorPt4GReyvbzgVGSNSQ5y4EKUsJVjSPv2/jL lrg037POJmbkFuhoTOrd0/AGnX3TGHvPijPleA+Eh1bT+bNQ25XeAKfW4Y/q4WHBVx5Y5+ JHhT8qBdRHFSpkQoVOmGr7G/691Dk6XRsUuxtpzu8AoyYVd/CJGu5KjLR//w4kBSSU9i6C 6EmAdynmfZJHnfI8V86LyIRvSWglfrq6hau3oEc1VB0fsKKy97stk7RsjRTECltYsAetJN XU2x+JWHshKd3/LSQO3+ch2pSs2Ruv+72DiyhkR3E+GaRjOxjBYVAhfSfpLJEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627172759; a=rsa-sha256; cv=none; b=hmBQb9eTZI8ih8nOYi+DMNqU5v2yCo1O1S24zV+yt9D8Mx96xtgiitnkMkZnD/RGhzenhx xwqKO9bxoBhs29rT3sB5k7afhQYOZi7uUe6myFLucN1k0En+B6A298uGXtpDT4HIPWbEf2 csmsUZ7nRsVopEA43SBl+ID7mDYwDXZ8GaCRMpIpTolLZgRnaoMzzvSWBGlbcg9vnYU1or 7NjdqDFbxiJDKpztcRA6+qm3ud2A3g5sQhUKYmMlKoaXRHq5F4wkLUo/ME6ImHdE0mIaqz 8OxOPYEHHIw3KkYQWNmvu1bJIQUhGMabu6cMJG5MWOngS2XiYo6iKqo3XUqmEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=AUtS4Rt4; 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-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=AUtS4Rt4; 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: CC13F2910 X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: AqpSruIAd4Zs 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? The functionality you are referring to sounds like eldoc minor mode. If you open a dedicated buffer to edit a file in the same language as your source blocks, do you see the behaviour you want. For example, open a file called test.el and edit some Emacs lisp. If you don't see the behaviour your after, you need to configure emacs-lisp-mode to load eldoc mode. Try typing M-x eldoc-mode and see if you then get the behaviour your after. If you do, then read up on eldoc-mode and how to enable it. The environment you get with a dedicated buffer and that you get with org-edit-special should be roughly the same. So the trick is to get things working how you like them using a dedicated *.el buffer and then use org-edit-special whenever you need to edit source blocks. There is also another good reason to use org-edit-special - there are some situations where org needs to add some special escaping characters in source blocks to enable things to be parsed correctly. Using org-edit-special ensures this occurs when necessary. Editing the source blocks directly does not. Arthur Miller writes: > I have been doing quite some programming with elisp in org mode, > and one > thing I am missing is this help that Emacs shows in minibuffer > for > functions and macros. You can see the example in the attached > image. I > am not sure what I have to enable (or disable? :)) to get it to > work in > babel src blocks? Or is it even possible? > > Some few days ago I stumbled on a blog post by J. Kitchin about > enabling > orignal mode maps in src block: > > > > That was another thing I was missing, and that one work really > well. > Thank yuu John! > > Can that hack be used to enable this help to pup up in > minibuffer as > well. I am not familiar what causes that lookup, but I see it > happends > even when Emacs is started with -Q option, so it is something > built-in > and enabled by default, probably in elisp-mode itself. > > Last thing I miss is company doing it's thing. I can complete by > pressing TAB, but I would still like it to happen automatically. > Is it > just me being noob and not enabling something, or is it bit more > coplicated than so? > > Sorry for the long writing, but basically what I ask is, can we > get more > of usualy elisp stuff hanpening in babel src blocks? > Regards, Tim -- *Tim Cross* /For gor sake stop laughing, this is serious!/