From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: How users start programming in Emacs Lisp... Date: Sun, 30 May 2021 19:22:20 +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="9560"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 19:23:39 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 1lnPA2-0002I6-2o for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 19:23:38 +0200 Original-Received: from localhost ([::1]:38542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnPA1-0000rY-0S for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 13:23:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnP9L-0000rQ-OV for help-gnu-emacs@gnu.org; Sun, 30 May 2021 13:22:55 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:33453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnP9J-0002wL-JA for help-gnu-emacs@gnu.org; Sun, 30 May 2021 13:22:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622395340; bh=bhPK7cOOimR+nCdG5KjWa/zjI/zKHZT2oETYmxcREpg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jkaYeNC6kgJy3XYoLD1vFMq2aVofsBfR2ZVO/W/VBq4ojURfrNNiXXqEdwO7MYJBR V2kiU5bWm1araEr3L6GPYcFVsZP8cZddZ9rGgAE6QqG6Kbf/hUFmt0F1gXk9BRTVH5 rV0MDsCw/gNwNV1ZeyG3aH6UoSsxwX9yuoyOpPww= 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-bs10.server.lan [172.19.170.178]) (via HTTP); Sun, 30 May 2021 19:22:20 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Cy/wRa54roK0ho6HYLWpX4fGkyXK8dIRh1HIqKvza2/UhCUi2rv1wPAKokGBry1ptNlmB JGcjYpMnNTZRGMKMQMbZFgPUCGJ+xLhmfkvqWLWMdAmHu0EWEyG3KqJXjqm2I+sA4ZzWbEJupuwK 5EEgoTdiREcf/QNOvnZcgpKQtg7wXdhNYrTrXUNf5ynmJ4JQv7Vfbjs9T4pJ/Z1T3J0LdCgN/+yf qAT2O4wwxaKJ2b1yipJMI6mujc1Voc5RpQ10MdE6T8litq3Vseq25qoauNG7hsLXZOHzO/1TmnTP +w= X-UI-Out-Filterresults: notjunk:1;V03:K0:jULASkVoldQ=:ILMnDbBMPPZT7eKjCuYpm0 aXnTN4vgGUCkb4F6tS7JYRJcHB2s9ijN6P1UPEaDVZpsXMzzqmmBlxD49Sr++g/0B9XgS1cay RgkrNFDGHQYlqonVS+c8N3C+z8V7i+XtJgC89Ct3kH3U6sZI7m4+feAt+C5qdbMYHGupeS3TH fuYktBnkW0W0jJYx2k1JMomE8rUYI8V6cB/3Oeg2OKwVVtTHDUGlI9BE7IWWjL5TOmudAtLSm x4EaqFa/MwKfK6TrUZ4/6gj9DdJbClJcuxMOkkwAXE3tGrCBNaMwDqsbRb9egJ6EMr7h6L4d/ X0+ZOSOMvBqmVr1/kxAa6IyItZj3E/NewwXZRBNTmYIp7jVY06ieCP421dufjbJ2JMtUfd5XL q66TJGYlUYDPx9hj2WZkPH4gVQ+Zv3rglv+buQHEmc8oJYTrnzHMV0kuxLUX8cGrpDXJ99mXx ZSHWZ1N9M8L9saElWUwo+2AUmfl7MEdkcVocTxgf6MfP/B4HhL23Zk+r0ffmZ7WF9DHhdp71U 9SHRTM2KpLF6uszQoXAdnGd0h9szc+yJj1WEZMfL23++3wPnbr4iDhd4Iptj67ban5Zjs2BCP IAYzQ54asDDpmxprLRcFIFKlPjTX9+92G6FMy+00dKA/7a98PNw3nMlW4Sh7AZgwfq3cDJel0 t7QaN+LywWrN1voOlBZos2z6ssxyQUjaFWw7k7SuM58jIxagrgl3ENNdBuY2vXqJludRbyRXN LDjrdXG/Pzzd5OlVjMwEvs2rKMXcg7StYqPsQXYhQJpL3zd9AuiHveTOTcNPLlEA8ZaezUUy Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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:130334 Archived-At: --------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy > Sent: Monday, May 31, 2021 at 3:54 AM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: How users start programming in Emacs Lisp=2E=2E=2E > > * Christopher Dimech [2021-05-30 16:55]: > > > How exactly do you wish to play with the name? Which name? Is it > > > buffer name? > >=20 > > The first optional parameter "name", which looks like it is the > > buffer name=2E >=20 > Sorry, I was using that long time without observing=2E >=20 > > When I use "C-u F5" you can only set the mode, but if name is > > already set, the code suggests that it will use it=2E But does not, > > because the let variable "buffer" is not set=2E >=20 > There is main name and sub-name=2E >=20 > Here now you can customize it: >=20 > ;;;; =E2=86=9D RCD TEMPORARY BUFFERS >=20 > (defvar rcd-temp-buffer-mode-history nil) >=20 > ;; You may customize the main name here: > (defvar rcd-temp-buffer-name "RCD TEMPORARY BUFFER") >=20 > ;; You may customize the modes you wish to get asked with prefix C-u: > (defvar rcd-temp-buffer-modes '("adoc-mode" "emacs-lisp-mode" "lisp-mode= " "markdown-mode" > "org-mode" "sql-mode" "fundamental-mode" "html-mode")) >=20 > (defun rcd-temp-buffer (&optional name mode) > (interactive "p") > (let* ((format (concat "*" rcd-temp-buffer-name "%s%s*")) > (buffer (if name (format format ": " name) (format format "" "")))) > (switch-to-buffer (generate-new-buffer buffer)) > (if current-prefix-arg > (let* ((mode (completing-read > "Mode: " > rcd-temp-buffer-modes nil t nil 'rcd-temp-buffer-mode-history))) > (funcall (intern mode))) > (funcall (intern (or mode "fundamental-mode")))))) >=20 > (defun rcd-temp-buffer-destroy-em () > (interactive) > (kill-matching-buffers "RCD TEMPORARY BUFFER")) >=20 I am having some problem figuring out what the following does, having form= at=20 repeated twice=2E (format format ": " name)=20 =20 > --=20 > Jean >=20 > Take action in Free Software Foundation campaigns: > https://www=2Efsf=2Eorg/campaigns >=20 > Sign an open letter in support of Richard M=2E Stallman > https://stallmansupport=2Eorg/ >=20 >