[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54154: 29.0.50; [PATCH] `sieve-manage-getscript' fails if script con
From: |
Lars Ingebrigtsen |
Subject: |
bug#54154: 29.0.50; [PATCH] `sieve-manage-getscript' fails if script contains multibyte characters |
Date: |
Sat, 26 Feb 2022 16:07:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Kai Tetzlaff <kai@tetzlaff.eu> writes:
> So just reverting it won't work. I will try to undo the parts relevant
> to this issue.
Sounds good.
> For clarification: The original code before Alberts change was using
> this macro (which seemingly contains an error in the doc string):
>
> (defmacro sieve-manage-disable-multibyte ()
> "Enable multibyte in the current buffer."
> (unless (featurep 'xemacs)
> '(set-buffer-multibyte nil)))
>
> to *disable* multibyte handling in the response/protocol buffer. If
> using `set-buffer-multibyte' is not the right thing, what should be used
> instead?
Using (set-buffer-multibyte nil) is the right thing to do to make a
buffer unibyte -- but usually only when the buffer is empty. There's
been some discussion about making `set-buffer-multibyte' signal an error
if used in a non-empty buffer, because in 99.7% of the cases where
people do that, it's the wrong thing to do.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no