From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Making new files Date: Sat, 4 May 2024 14:41:50 +0700 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="5180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime , Heime via Users list for the GNU Emacs text editor To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 04 09:42:33 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 1s3A2S-0001ET-QV for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 May 2024 09:42:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3A29-00033Z-E3; Sat, 04 May 2024 03:42:13 -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 1s3A25-00032l-Fi for help-gnu-emacs@gnu.org; Sat, 04 May 2024 03:42:11 -0400 Original-Received: from mail-ua1-x930.google.com ([2607:f8b0:4864:20::930]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3A20-0007Jy-KE for help-gnu-emacs@gnu.org; Sat, 04 May 2024 03:42:09 -0400 Original-Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7f18331b308so172710241.0 for ; Sat, 04 May 2024 00:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714808522; x=1715413322; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Y600LVUT4iMWjxN4byhAQy/X8fU2nd7LFu0nuC34qCo=; b=jmMpF35pyFQrSHlslvKAOIy7PVwZBPRGNKLI+wP3oBPjmVdWo2MdJJXBPoo1usdgp0 qoY1P0mnKprAIJsD297kVF/y8v4qV1ORv+g5kyqmuPhj2BTSL3VD7VREwJ3SRIfOcvbF uaaqIo5gpCSQXlFf4sRwwI/DTl2t6Ac+l2i4ngBjFBWtIQGPMN389nSKZolOOSbZnkQL FdRrs9ITjm25SyNUzs8Zf5UKEVb72dr64B+B/XVMiP4RDN7kVxE2YVQiYAH9ymSPzCO5 Z173dUjvaxtfrp4ubcqQFyelJypnMkWiS+VJGPT2m1eWTuXyD7uqPkJr5v9gCVdC9lwa KLsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714808522; x=1715413322; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y600LVUT4iMWjxN4byhAQy/X8fU2nd7LFu0nuC34qCo=; b=ga8etKnCGjxOkaOq3CHvA8Z8jiA2hXMFfVSJBufgYjFLzTMeIxiWN9rK6WvKHX41kV tp8scktQSxE4RPQyTiy+GfZuMpJVWXTfPiJYZkqmfGGtktsuUjqmCf/U/XdCfB6kCAMA WNJSkZA17t85W0+NvX6Olt9HkPA3BIOJqLq7VYdwc7bWAzwgRXS2MssibKyxzj3DUMEq Wc3Eg/aPMKRHUe0SFhRB5XwkkxLw5HeTsMUPrB+LEZiwvmgRXuUa+wTHwcTt/cOOttso Y6kpMcBa4JRXuEZpaBwAf+EX4VgfczETOXB7QoTiGhew+pU6RR9Q0v7zsNPUu2XThNRm rmsw== X-Forwarded-Encrypted: i=1; AJvYcCVU2opUHRImsBKeXwbXfbrQ6VX5cijonyJJmq7d/FPWPr2CWJEpDv+6Pfqxrdrtc9eWfDUVHCDFJJm1X/wCtYywLmAcJTJJ X-Gm-Message-State: AOJu0Ywubp7J1wrOttXSRe/uH1PtdFC87c5u5r1ooNH69S8N6ohJRDsH yIesmy07xpgQpdkFq2jo9ANPwUwVxmyqwLTTbSjKkDE7qeAqeYcnUl9Tzz27IO2CVylojpqF5CW y6lzpMmKCV9GXuir/aTrXQgtgKNI= X-Google-Smtp-Source: AGHT+IGL3vbjnnD+boou4pE1aujCSTtILe5adIJMXi2p1MhoX3zXxF6F311bXg8Zn5uv+ICqdKsL2Ui89SLXVjTIKgo= X-Received: by 2002:a05:6102:5d6:b0:47e:ec9f:62f7 with SMTP id v22-20020a05610205d600b0047eec9f62f7mr5398356vsf.9.1714808521975; Sat, 04 May 2024 00:42:01 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::930; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x930.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, T_SPF_TEMPERROR=0.01 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:146531 Archived-At: On Sat, 4 May 2024 at 07:16, Po Lu wrote: > > I always struggle in emacs because there is no way to make a new file > > from the "File" menu. Can "New File" be added please. > > "Visit New File." That=E2=80=99s not exactly what Users New To Emacs=E2=84=A2 expect from a F= ile =E2=86=92 New command. The standard behavior of File =E2=86=92 New is to create a blank buffer, no questions asked. The decision as to the name and location of the file is deferred to the first explicit save. Emacs, on the other hand, asks for the name up front. @Heime: Consider this a productivity shortcut. By giving a name to your file, you let Emacs automatically choose the appropriate major mode, which, in turn, gives you the right syntax highlighting and various mode-specific key bindings. With an unnamed file, you=E2=80=99d hav= e to choose the mode manually.