From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Making new files Date: Mon, 06 May 2024 16:43:59 +0000 Message-ID: References: <8734qvifn0.fsf@gmx.net> <87le4n3wsq.fsf@yahoo.com> <87msp3gftm.fsf@gmx.net> 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="23891"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier via Users list for the GNU Emacs text editor To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 18:44:59 2024 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 1s41SU-0005zp-P5 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 18:44:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s41Rk-000265-RF; Mon, 06 May 2024 12:44:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s41Ri-00025N-AC for help-gnu-emacs@gnu.org; Mon, 06 May 2024 12:44:10 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s41Rg-0001hd-CX for help-gnu-emacs@gnu.org; Mon, 06 May 2024 12:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1715013845; x=1715273045; bh=lui71Csn6I0b73msQa+Bn8/ovwoYvxzKTiF9yx+Ozmw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=lahsnHdYgfDQgGsFDTlEDB4CHq6IlXkMnW17sHbVgwAcvnE62T5eBRkpRoEDKA5wT ZsP1zF2H351fY7ekPs3swhcuyMZnpmWd8crq9u29nfO+08GXtLPNJ1B9LY4RcM6jH5 G/GcvgaB+lhMjSCzI4SHTsYUy20zB1dUuAJJsIpkeXuMA92AlqCze2n61Yi3OiEzST kPJlRF+wkIJ4rtG+JX/ed5AfIbITeDp+iLPzyohpu9pN1pLhxvRy7IwzquL78zfxD2 5euKguz9fjttt32dqIYjBTCHWsqycDeEVsS6lqNv1CK6KZge3DuphB5FiX7QVASP3X BnrO7qhOh7ZUg== In-Reply-To: <87msp3gftm.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 50a52c2450a998410df8e3342d4085bfd4496e17 Received-SPF: pass client-ip=185.70.43.18; envelope-from=heimeborgia@protonmail.com; helo=mail-4318.protonmail.ch 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146593 Archived-At: On Tuesday, May 7th, 2024 at 2:44 AM, Stephen Berman wrote: > On Mon, 06 May 2024 13:34:37 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 > > On Tuesday, May 7th, 2024 at 1:16 AM, Po Lu luangruo@yahoo.com wrote: > >=20 > > > Stefan Monnier monnier@iro.umontreal.ca writes: > > >=20 > > > > > > Then, no we don't have a command specifically dedicated to crea= ting new > > > > > > empty files (contrary to the command line which has `touch` for= that). > > > > >=20 > > > > > There's `dired-create-empty-file'... > > > >=20 > > > > Well, I'll be damned! > > > >=20 > > > > Thanks, Steve! > > >=20 > > > There was always "M-! touch", as well. > >=20 > > A great thing to have is the ability to allow people to introduce their > > own menu bar items in a convenient way. So then I can call the command > > you wrote for me. That would assist a lot of people. >=20 >=20 > It's pretty convenient with `easy-menu-define': (defun heime-new-file () = "Open a new empty file using` dired-create-empty-file'." > (interactive) > (require 'dired-aux) > (call-interactively #'dired-create-empty-file)) >=20 > (easy-menu-define heime-menu global-map > "Heime's very own menu." > '("Heime" > ("File" > ["New File" heime-new-file t]))) >=20 > Steve Berman Why don't you allow others to add to the existing menus rather than=20 our own separate menus.