From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Insert text in command-log-mode buffer before logging Date: Mon, 3 May 2021 14:24:33 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30127"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: steve-humphreys@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 14:25:50 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldXe2-0007jS-6p for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 14:25:50 +0200 Original-Received: from localhost ([::1]:47574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldXe1-00085C-8W for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 08:25:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldXcs-00083k-Oi for help-gnu-emacs@gnu.org; Mon, 03 May 2021 08:24:38 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:38035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldXcq-000557-Ii for help-gnu-emacs@gnu.org; Mon, 03 May 2021 08:24:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620044673; bh=J0RtrDIcyshpmbJhPMnsuMFjuqw/1jfb1xyrdAABxz8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=isv2FMlWTyEWZxs3qhAUdK0YIKiLk9sf8TnMs2RHntWFe5Q1F4+zUtE1mq4rv39Ek 3YgjD6IBk3V26MwhNzDPtePZD74YoIIixXCcHg2uVeIr2ahC7o2Q6nOupoIW7jJSPI sNNe5CbTwZRk07cuh1Tn6gaESJ1VLj61tmCqYgkc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Mon, 3 May 2021 14:24:33 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:j/dDzw3NHrdr+PXUdEKVo19F+5J8ISQr5P2kh1t/lhM3dhYNMPv9AWoS44j/oEALmxOUQ feIrnhyHYVbYvh1m822+NvJ7hgWvOgJ0fSBqtj5V0xjMkrEX7ey3lSjA/RfUJJXY54ni0XmNCdN7 acxklkvSqqTtokYZkHFbrDaJWK5PqPIhWhbGozIcxAszOaY8xXbRB9WiL+FUFwNMRDsJxXv8SgwF 6JNLrFVVDYDr8Wtmp6AZl/anwLJL5kieyQdrn9bLNtGMM/Ub+EOGoRf/hglH5kBx33s/UgGYI3iK zo= X-UI-Out-Filterresults: notjunk:1;V03:K0:80J/8UY18NI=:8eVrVo+My2bTv7v3YlNGhb q+h9nLzvrrwRxEupHzoHtJVx06T1lxK9qWWKySAX5XTGYNg5//lmQSIifj0RjHt1dKu912/W8 dYwlM/TsD90dMoRW1NbWY+WDhSy7dxHVJEhfdKe6Nr63jgQAQ0UOGd7eNz0Q+WZ1FAjrGh/16 yChPGPczg0+TUMaOFU2gUZrOHliuE/FVqke0ml+ocoSKQr7PpieDe2LlCMIpU1GH687GqD1q3 vbWWKXyeyEGm6fe12+urHSjNwcQzUkKVLxpQTw18kx3EEBTXZwaU3pE7RLbOG1E+EBeklyivj mn+VzoXoBwJEoHOQNuPadQKt083v/ZYF2oA6TqZ7CitYeogmXIcuExDGtmFDUZ1sLYKsx6Tw+ n4o9V1A2CcnzarF/smL0zpwO0YwdwxAxuGG6CHB0CR6O3FAnHj9gKeXnvdvpgUZNzaNjhdpd9 k6IrIIqTm9Ypve+r0W7UO1KKG2nhnLL8Nx5DOauJx4q3mf9Hpc/aw29pfvvuz337N5ZSsOcrs xMn6t1dg2J2iopUc55xxiwllRSFu3AyUTsmUUQZpxH3JnY7R+PgO+sfdxM0woBxuNWf73SZC6 /QXUInRuQ/NVOHH2vy3g7S37fbJuTotyzP2i2R3guJn9WoCFKGDpqta+9ywXCsiz83M/HLr7n iNZ2OXOlWBMLMI7UbEseMbkUuY/aNRH2LCDQq1CpKZjA+4Ncfkl0aFY/Kpmww/pSWygSxSRKD IVFeM3y5Kbv/sTDVQow0pY2uKpQZ4jHPVTxrt9nmIRSzsVFuVYWeEOnpvZuN4X4R5yfSSrBR Received-SPF: pass client-ip=212.227.15.18; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129371 Archived-At: Have tried inserting text in the following function but it is not being displayed. I think the buffer is not available at that point. (defun clm/open-command-log-buffer (&optional arg) On the other hand "clm/log-command (&optional cmd)" intercepts command act= ivation but I do not want my text to appear every time there is command activation= . > Sent: Monday, May 03, 2021 at 3:26 PM > From: steve-humphreys@gmx.com > To: "Help Gnu Emacs" > Subject: Insert text in command-log-mode buffer before logging > > I am using "command-log-mode" and want to insert some text after > the log buffer is opened, but before logging starts. > > I am struggling to figure out where and how I should do this. > > Steve > > > > > >