From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [toggle-read-only] (was: replacement of find-file-not-found-hooks) Date: Wed, 24 Jul 2024 15:47:35 +0300 Message-ID: <86o76n6jo8.fsf@gnu.org> References: <87a5icjeua.fsf@mat.ucm.es> <87o76sarrq.fsf@igel.home> <87plr6g57s.fsf@mat.ucm.es> <877cdc8us0.fsf@mat.ucm.es> <87o76ojyaf.fsf@posteo.net> <867cdc9w7p.fsf@gnu.org> <877cdbsy0x.fsf@mat.ucm.es> <865xsv82m6.fsf@gnu.org> <87bk2notpc.fsf_-_@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3725"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, stefankangas@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 24 14:49:01 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sWbQS-0000nu-1b for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jul 2024 14:49:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWbPt-0002Bc-FZ; Wed, 24 Jul 2024 08:48:25 -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 1sWbPa-0001KJ-RZ for emacs-devel@gnu.org; Wed, 24 Jul 2024 08:48:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWbPa-0000KV-32; Wed, 24 Jul 2024 08:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QVCDcrSxsNqJBLHVxksQAiOEre782pzhmqBTiROOkQ4=; b=bf8i4dWOpFlkb6wmnQgm RSF9RF/OH9yiOGSeFIZ3cIwRxsbK4THQdYg+p/pz2YQ/+yqQZftEO+T5TBIw5KB8dewe2Of3xN72O 3uwAz0SdtscA1JyMknhXStULOeTNhblDcZU/sxR5lBySWUJRnR0fuxAK1smVRvOlxXw8BdBsWSU// J1vvqPtxXSKM+59KXu4k7jN1I8ugy4V6acw8vW3qm6mxsfYE/E5gzt2aw0atPS3OhqSUJaeGn8ZUz 98xsjwO82l0LSs93FUImFYam0CQo2XCREzSEK9lg85k2XtbKquToos1edypMp/n0QJNTDXE/TzSkX IxFOh11ThgttUw==; In-Reply-To: <87bk2notpc.fsf_-_@mat.ucm.es> (message from Uwe Brauer on Wed, 24 Jul 2024 14:33:35 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322047 Archived-At: > From: Uwe Brauer > Cc: Uwe Brauer , philipk@posteo.net, > stefankangas@gmail.com, rms@gnu.org, emacs-devel@gnu.org > Date: Wed, 24 Jul 2024 14:33:35 +0200 > > >> 2. When I compile I of course see the warnings, but do you suggest > >> that I just byte compile all my files after installing a new > >> Emacs version? > > > Yes, I'd definitely recommend that. I do it myself on my systems, > > FWIW. > > Oh my god, that will also end up taking me days. Why "days"? how many Lisp files do you have that it could take "days" top byte-compile them? > BTW, code, that worked in emacs 28 now gave an error because > toggle-read-only is no longer known to be defined and here no hint > was given what to use > > So I boldly > replaced > - (toggle-read-only nil)) > by > + (read-only-mode nil)) > > It worked toggle-read-only is obsolete since Emacs 24, i.e. for the last 12 years. > >> 3. I still find the naming «find-file-not-found-functions» > >> and therefore the call > >> (add-hook 'find-file-not-found-functions > >> 'insert-auto-insert-files 'append) > >> counterintuitive, (now it is too late, but why wasn't this called > >> «find-file-not-found-hook-functions» or something like this). > > > Longer names are harder to type and read. > > Yeah but maybe easier to find via apropos! No, not easier. > >> 5. I still don't gasp the advantage of renaming functions and > >> variables. I understand the benefit of introducing new functions and > >> variables but the benefit of renaming variables and functions I > >> fail to see. > > > It makes Emacs easier to learn and use. > > And it breaks backward compatibility. Which is why we do it very sparingly and always after a very long period of obsolescence. Many people think we are too conservative.