From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Sun, 12 Jun 2022 23:29:41 +0000 Message-ID: References: <83h74rxze0.fsf@gnu.org> <83bkuzxvur.fsf@gnu.org> <878rq2gyoc.fsf@yahoo.com> <87v8t6fj7i.fsf@yahoo.com> <837d5mwda0.fsf@gnu.org> Reply-To: goncholden 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="21131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 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 Mon Jun 13 01:30:38 2022 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 1o0X2U-0005KZ-Er for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Jun 2022 01:30:38 +0200 Original-Received: from localhost ([::1]:35464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0X2T-00049a-6o for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 19:30:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0X1j-00047K-I7 for help-gnu-emacs@gnu.org; Sun, 12 Jun 2022 19:29:51 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:11051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0X1g-00047Q-SA; Sun, 12 Jun 2022 19:29:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1655076586; x=1655335786; bh=yZwLVNCN/pU9uVieWWEVnJyogY7ybUv/JVqGpFB908o=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=eNMiMyEqvIunZTNYiPaybItQAMTMgz5lqc8m1zeGamUBq+PzBp6ULdjWN4gLQBpgW S94+xXcT5sFNlTg7xbCfK2B0TAehTK6Z2jwrnIxzaUghLmJ8U8rSo/czdZgNBqs8Hk 3arU4AZ+O8Z6lmJ/dqWRHOAde4hs56ju7HIa/+9Wn3X5xa6Mb7xfmH9OwzOIoJJe3Z 0NMooVpl/shKkSWa15i+L6Wz6wTf/J5Zpt2XUbrjgXt1kjRExC7ldOfEN+zEwRVq4k RJYoiVHtAXCVqGtjLaC8oncxapo8s5NbbHTNMOo+Tbc2jTjwVTSqNAipt6Trur8QWA tMaDC6QZQ4pzQ== In-Reply-To: Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=goncholden@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_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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" Xref: news.gmane.io gmane.emacs.help:137753 Archived-At: ------- Original Message ------- On Monday, June 13th, 2022 at 6:21 AM, Jean Louis wrote: > * Eli Zaretskii eliz@gnu.org [2022-06-12 20:46]: > > > > From: Po Lu luangruo@yahoo.com > > > Cc: Eli Zaretskii eliz@gnu.org, help-gnu-emacs@gnu.org > > > Date: Sun, 12 Jun 2022 15:13:05 +0800 > > > > > > Or here's a better idea, if you don't want any of the features provid= ed > > > by Fortran mode: use fundamental-mode instead. > > > > That still has electric-indent-mode turned on by default, though. > > > > Using Emacs makes no sense at all if one doesn't want automatic > > (re)indentation. Why use such a powerful editor if all you want is to > > disable each and every feature which makes its powerful? > > > Maybe manual shall have a section about disabling indentation. > > I was too much used on some automatically offered features in Emacs, > and simply submit to them and use what Emacs offers. > > Though I can understand that different files not made with Emacs could > have different intendation and myself I would not like changing those > or adapting those automatically. > > For that reason I sometimes use this function to edit buffer with > external editor. > > (defun rcd-edit-with-external-editor (&optional text) > "Editing with external editor as defined in `rcd-external-editor'. > > It will either edit the optional TEXT as string > argument. Otherwise it will edit the current buffer and replace > it with the result." > (interactive) > (let* ((buffer-or-text (if text nil t)) > (text (if buffer-or-text (buffer-substring-no-properties (point-min) (poi= nt-max)) text)) > (point (point)) > ;; (mode major-mode) > (file (concat (or (getenv "TMPDIR") "/tmp/") "temp-file"))) > (string-to-file-force text file) > (call-process rcd-external-editor nil nil nil file) > (if buffer-or-text > (progn > (erase-buffer) > (insert-file-contents file) > (goto-char point)) > (file-to-string file)))) > > (defcustom rcd-external-editor "notepadqq" > "The external editor as an option for some functions" > :group 'rcd > :type 'string) Thank you Jean Louis. You are the most sensible person I have encountered = here. Hat off. > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > In support of Richard M. Stallman > https://stallmansupport.org/