From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: write-region, auto-compression-mode, file endings
Date: Mon, 09 Sep 2024 20:42:49 +0300 [thread overview]
Message-ID: <86r09svi3q.fsf@gnu.org> (raw)
In-Reply-To: <87jzfk7oqn.fsf@librehacker.com> (message from Christopher Howard on Mon, 09 Sep 2024 08:53:20 -0800)
> From: Christopher Howard <christopher@librehacker.com>
> Date: Mon, 09 Sep 2024 08:53:20 -0800
>
> Hi, in some code for a scripting project I use `write-region' calls to (over)write data into files, from a temp buffer. This works fine, except that for reasons I won't go into, the file names involved have unusual file ending like "..Z", which causes auto-complete-mode to kick in, which is not good in my case.
>
> I'm wonder what is a minimal code change I should make to ensure this doesn't happen, regardless of whether auto-complete-mode is set or not. Ideally (for this code) I don't want anything special happening regardless of what the file ending is.
You could disable auto-compression-mode around the call to
write-region.
Or you could remove jka-compr-handler from file-name-handler-alist,
while write-region runs.
next prev parent reply other threads:[~2024-09-09 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 16:53 write-region, auto-compression-mode, file endings Christopher Howard
2024-09-09 17:42 ` Eli Zaretskii [this message]
2024-09-09 19:55 ` Christopher Howard
2024-09-10 11:34 ` Eli Zaretskii
2024-09-10 1:51 ` Stefan Monnier via Users list for the GNU Emacs text editor
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86r09svi3q.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).