GNU bug report logs - #75591
30.0.92; Inconsistency in Function Naming: *-open-file vs. *-find-file

Previous Next

Package: emacs;

Reported by: Anush V <j <at> gnu.org>

Date: Wed, 15 Jan 2025 18:32:01 UTC

Severity: wishlist

Found in version 30.0.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 75591 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Anush V <j <at> gnu.org>
Cc: 75591 <at> debbugs.gnu.org
Subject: Re: bug#75591: 30.0.92;
 Inconsistency in Function Naming: *-open-file vs. *-find-file
Date: Wed, 15 Jan 2025 22:16:03 +0200
> From: Anush V <j <at> gnu.org>
> Date: Wed, 15 Jan 2025 13:29:44 -0500
> 
> I noticed an inconsistency in the naming conventions of certain Emacs
> functions that I find confusing.  Specifically, some functions use
> *-open-file(s), while others use *-find-file.
> 
> Functions such as eww-open-file and recentf-open-files use 'open-file'
> or 'open-files' in their naming.  In contrast, many other functions,
> including dired-find-file, find-file, project-find-file, and
> ido-find-file, use the 'find-file' format.
> 
> I am curious about the rationale behind this difference.  Is there
> a specific reason that some functions prefer 'open-file' over
> 'find-file' even though they seem to perform similar actions?

I think just personal preferences of whoever implemented these
functions, and the many years that passed between the "find" names
were introduced and the time the "open" names weer introduced.
Nothing more.




This bug report was last modified 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.