From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: dick.r.chiang@gmail.com
Newsgroups: gmane.emacs.bugs
Subject: bug#39506: patch
Date: Sat, 08 Feb 2020 10:10:38 -0500
Message-ID: <877e0xf72p.fsf@dick>
References: <87tv419ail.fsf@dick>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
	logging-data="102507"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (gnu/linux)
To: 39506@debbugs.gnu.org, smonnier@iro.umontreal.ca
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 08 16:11:12 2020
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1j0RlI-000QaH-05
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 16:11:12 +0100
Original-Received: from localhost ([::1]:42534 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1j0RlH-0003jz-2I
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 10:11:11 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34365)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1j0Rl9-0003jq-Mz
 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2020 10:11:04 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1j0Rl8-0004Nq-PS
 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2020 10:11:03 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:45732)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1j0Rl8-0004Nk-KL
 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2020 10:11:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1j0Rl8-0005Ia-E9; Sat, 08 Feb 2020 10:11:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: dick.r.chiang@gmail.com
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org
Resent-Date: Sat, 08 Feb 2020 15:11:02 +0000
Resent-Message-ID: <handler.39506.B39506.158117464720342@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 39506
X-GNU-PR-Package: emacs,gnus
Original-Received: via spool by 39506-submit@debbugs.gnu.org id=B39506.158117464720342
 (code B ref 39506); Sat, 08 Feb 2020 15:11:02 +0000
Original-Received: (at 39506) by debbugs.gnu.org; 8 Feb 2020 15:10:47 +0000
Original-Received: from localhost ([127.0.0.1]:51703 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1j0Rkt-0005I1-9u
 for submit@debbugs.gnu.org; Sat, 08 Feb 2020 10:10:47 -0500
Original-Received: from mail-qt1-f173.google.com ([209.85.160.173]:32794)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dick.r.chiang@gmail.com>) id 1j0Rkr-0005Hp-I8
 for 39506@debbugs.gnu.org; Sat, 08 Feb 2020 10:10:46 -0500
Original-Received: by mail-qt1-f173.google.com with SMTP id d5so1810636qto.0
 for <39506@debbugs.gnu.org>; Sat, 08 Feb 2020 07:10:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 
 h=from:to:subject:references:date:in-reply-to:message-id:user-agent
 :mime-version; bh=diw9+RJE3GvRk8aHRj+cHtau3dNUlwXeQ4VEhe1Wd24=;
 b=F5t4AaB9f7J2NwXiKLVN4yOuZqKm9TUjrURkijFG73KbfS5uJoSfbf3jI+9SggUu5+
 PqfiylWSEU+M8ykFI3SiGzpdtWhM/6GR89tJYhXcpKQwcIvVsVmQuPyRoqG8UHcxjlY2
 +Dt8teYCZU5zd48TxLNonRsYOLsi8N3j6B1ibtP0Om+++C9Q4fUeCBR7U9ZLKEryNqYu
 Eoc2UkD0Rk152YCydU/GdSSET01PNi9TYSBnaPvdNpdMSERhbreFig75wHb8BdQ+LQes
 KFJcj12bPB8MCgdzd+24GLzOqdIT8oeIXffkv3jKvG4ivqqNSDiM/85tUl4IprxpQtsy
 eYjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=diw9+RJE3GvRk8aHRj+cHtau3dNUlwXeQ4VEhe1Wd24=;
 b=ZRYn3NZ7RlEb8qVz5fTtUEiTfLTRdMT18RkGUY9wlgXSwwwR8iuJqCQ897GRZgvaS7
 xcVfKCurJ0A/mAd/g8GloqbfrOb3PaQPv9XT+RwVUTzR2V5twkzr14a3FJcYZaFnCLbb
 6NpcbshLZQoeigUGhSfLNuj44Jnz8sv/gNlK/PYLZ2N1XuMn/bTq8UXuVPO6is+5YU0h
 BosqVvZPQ8YC4Ed89JwTOhpHsSyu7BKks05nqINmLe13G7Kqnz/hUdoiPLHW/CnGF0R0
 CdEy4B2CXW30IBGGkXItKTGLjF58es2b+iszdYsRMyJgljts49QK0bkeGjLI36VT5ajZ
 nd1g==
X-Gm-Message-State: APjAAAVePf9CQwPTtt8tZueu4yhSNYUZTF3ixMS+YmbO29xeDEn8unjY
 KIOHVXo0ON/QVJ0EB4+MQxcxzY0q
X-Google-Smtp-Source: APXvYqwcJ4j3i7pbZlCjAQDjBnb/LuEOQaRJohhsjOew6hx/XYg/ycoTVxn3pNKg+wBgyzgzwvo3jQ==
X-Received: by 2002:ac8:1866:: with SMTP id n35mr3121204qtk.28.1581174639912; 
 Sat, 08 Feb 2020 07:10:39 -0800 (PST)
Original-Received: from localhost (pool-100-33-98-8.nycmny.fios.verizon.net.
 [100.33.98.8])
 by smtp.gmail.com with ESMTPSA id d25sm2954503qkk.77.2020.02.08.07.10.39
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 08 Feb 2020 07:10:39 -0800 (PST)
X-Google-Original-From: 39506@debbugs.gnu.org
In-Reply-To: <87tv419ail.fsf@dick> (dick's message of "Fri, 07 Feb 2020
 19:40:34 -0500")
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:175798
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/175798>

In the changelog message of commit d4eb2b7, you claim to "set the buffer to unibyte
before inserting" but it's not clear where.  Then in a later comment, you say
"may happen that the handle-buffer is multibyte... in which case now is a good
time to adjust it, since we know ... it should be unibyte."  The revision before that
preserves the multibyte-p setting, so I do the same in this patch.