all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 35495@debbugs.gnu.org, ueno@unixuser.org, federicotedin@gmail.com
Subject: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Date: Sun, 12 May 2019 11:23:26 -0400	[thread overview]
Message-ID: <jwvftpj66ys.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8336lkcnhc.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 12 May 2019 07:20:47 +0300")

>> In the absence of a file-name-handler, it should just defer to write-region.
> I'm confused: I thought we were talking about features implemented via
> file-name handlers.  jka-compr is, for example.

Here's how I hope for it to work:

write-region-literally checks file-name-handler, finds HANDLER and delegates
to it, if HANDLER has a special handler for it (e.g. jka), then that
handler will presumably end up calling write-region, but if it doesn't,
then it rebinds inhibit-file-name-operation’ and
‘inhibit-file-name-handlers’ and calls write-region-literally again
which this time won't find this file-name-handler.

> For the present use case, sure.  But we are discussing a more general
> solution, right?  The question is, will all of them want to disable
> those conversions?

I'm suggesting to add write-region-literally and the "inverse" or
insert-file-contents-literally.  Just like
it is the case for insert-file-contents(-literally), there are in theory
middle points, but in practice those can be reached by manually
performing the extra encoding/decoding that the `-literally` version
doesn't do but that we'd need in this case.

IOW since we don't have any
`insert-file-contents-literally-but-please-do-the-coding-system-decoding`,
I don't think we want a `write-region-literally-but-not-quite`.


        Stefan






  reply	other threads:[~2019-05-12 15:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-29 20:02 bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside Stefan Monnier
2019-05-08 22:26 ` Federico Tedin
2019-05-09  0:53   ` Stefan Monnier
2019-05-09 23:00     ` Federico Tedin
2019-05-10  0:24       ` Stefan Monnier
2019-05-11  0:26         ` Federico Tedin
2019-05-11  0:37           ` Stefan Monnier
2019-05-11  1:43             ` Federico Tedin
2019-05-11  1:54               ` Stefan Monnier
2019-05-11  2:20                 ` Federico Tedin
2019-05-11 12:54                   ` Stefan Monnier
2019-05-11 16:24                     ` Federico Tedin
2019-05-11  6:48         ` Eli Zaretskii
2019-05-11 12:55           ` Stefan Monnier
2019-05-11 13:06             ` Eli Zaretskii
2019-05-11 14:10               ` Stefan Monnier
2019-05-11 14:22                 ` Eli Zaretskii
2019-05-11 19:55                   ` Stefan Monnier
2019-05-12  4:20                     ` Eli Zaretskii
2019-05-12 15:23                       ` Stefan Monnier [this message]
2019-05-12 15:57                         ` Eli Zaretskii
2022-04-22 13:13 ` Lars Ingebrigtsen
2022-04-22 13:40   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-22 14:18     ` Lars Ingebrigtsen

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=jwvftpj66ys.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=35495@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=federicotedin@gmail.com \
    --cc=ueno@unixuser.org \
    /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.