all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: lekktu@gmail.com, 13033@debbugs.gnu.org
Subject: bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong
Date: Sat, 01 Dec 2012 11:13:04 +0100	[thread overview]
Message-ID: <87k3t2w05r.fsf@web.de> (raw)
In-Reply-To: <8338zrurdq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Nov 2012 15:55:45 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

> > It is a bug if something like `read-file-name-internal' is not
> > allowed to be called in third-party packages.
>
> Then please submit bug reports, asking for features that you cannot
> get from other APIs.

Ok, I'll remember that.  But I wouldn't be surprised if the new API
would just be a corrected and documented version of
`read-file-name-internal'.

> > At university I learned that writing software happens in a way that
> > every function should have a clear specification for what it
> > does/returns, and a documentation of this.
>
> If they didn't teach you about the difference between internal APIs
> and public APIs, then it's too bad.

Yeah, education here is quite strange and idealistic.  They even told us
that such specification and documentation would help developers
understanding the code, as well as it would help these people that maybe
want to change this code some years later.

> Nevertheless, the distinction is part of our lives.  Some languages
> have means to conceal private APIs from external applications, but C
> and Emacs Lisp don't.  So we use whatever we got; please always assume
> that there are good reasons for that.  (It is OK, of course, to
> question those reasons, but ignoring them is not wise, IMO.)

You're right, I think I question the reasons, in this case.

So, I don't think we disagree here.  IIUC, what we need for Icicles is a
completion table for filename completion that can be used as the
COLLECTION argument for `try-completion' or `all-completions'.  That is,
I guess, something like a not forbidden version of
`read-file-name-internal'.


Michael.





  reply	other threads:[~2012-12-01 10:13 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 21:44 bug#13033: 24.3.50; regression: read-file-name-internal handles "~" wrong Drew Adams
2012-11-29 23:58 ` Juanma Barranquero
2012-11-30 13:12   ` Michael Heerdegen
2012-11-30 13:55     ` Eli Zaretskii
2012-12-01 10:13       ` Michael Heerdegen [this message]
2012-11-30  3:56 ` Stefan Monnier
2012-11-30  4:08   ` Drew Adams
2012-11-30 17:00     ` Stefan Monnier
2012-11-30 17:24       ` Drew Adams
2012-11-30 18:44         ` Stefan Monnier
2012-11-30 19:50           ` Drew Adams
2012-11-30 20:07             ` Eli Zaretskii
2012-11-30 21:09               ` Drew Adams
2012-12-01  7:46                 ` Eli Zaretskii
2012-12-01 16:34                   ` Drew Adams
2012-11-30 20:08             ` Stefan Monnier
2012-11-30 20:42               ` Eli Zaretskii
2012-11-30 21:14               ` Drew Adams
2014-02-09  2:51                 ` Lars Ingebrigtsen
2012-11-30 19:01       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3t2w05r.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=13033@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.