From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Thinking about changed buffers Date: Mon, 28 Mar 2016 20:00:30 +0200 Message-ID: References: <87fuvafpvd.fsf@linux-m68k.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459188089 28232 80.91.229.3 (28 Mar 2016 18:01:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 18:01:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 28 20:01:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akbTb-00084s-QZ for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 20:01:19 +0200 Original-Received: from localhost ([::1]:42083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akbTb-0008SH-4h for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 14:01:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akbSw-0007wv-Ry for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:00:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akbSt-0004Ni-L6 for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:00:38 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:42081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akbSt-0004NR-9c for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:00:35 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1akbSp-0003qn-5Z; Mon, 28 Mar 2016 20:00:33 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEVcUTz+/v6Mbk8CEAZv W0LSx7p4ZEooMyR32T31AAACQklEQVQ4jXXUMWvkMBAF4EERUp0ivXiI2TacAm6NMN76OMK1Qgil FWuz+vs39iZ2iotY3HxIb2ZkLz3/sOj5+eX9/f339pD1sv9kbfB36ENk0qRNASuXneFpgz+hB8Wa iEwC31N0pup9h8DNG4HbBJiUE1Xz2DGENzfLWWtlKAfX8gOWIay+pknO8lkxEuXygDBorqnQqFkp 8NhVPWDyU5F81lPm0m/8CB8GDa+SGXWMPvtCCo/wMBCcSpS0yS6zJ/MNUvVU7sVzRrH0BWGEK1XA O4F6QheY0AyBHTDZ63lUZANbKcuoUHuKJ8CA/JpViZltyp/w2iISqK4zBJwdv2BogMu66gwTOVn6 gtAjHEw1GTIS308YNtB1rjDO+2Y/q1pCuIFZ+zpLkPPGHg2GN8hUfZ1AnLw+qgrhFzBbrgRC4dkd De5AOesNXOGj3OUGjNJ3zSkXl+qRsSjgqtXIymNy48zf+sBHi5OXFiemcuwYZIezamaZlIJVZ7mS 4fusy5xxE6gHvMpZrWqtdFTcdTxAzpqaF4gy+U7qgBDhBYxROcsQ5wO6vEDN0d2oImE0nrAKJLrP Uh5fRzqhgVeiRjHDfZh+QgfuWkBlla50wrDDKMDxYqmdsACr1gIlXq7fICxyR60JJLiLXg9YgoC2 Ag71sqpv0EBmg23uLT6+jx1eMQroO5DkI9xh2cJDRzVPXW/v9aXt0/3b9/QhZnqypOViLtY8YNkB 0E92FKjJPjK6SN9ax8dY5QlO+w3++O/z//UPGJ/SD7LwYVoAAAAASUVORK5CYII= In-Reply-To: <87fuvafpvd.fsf@linux-m68k.org> (Andreas Schwab's message of "Mon, 28 Mar 2016 19:56:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202329 Archived-At: Andreas Schwab writes: > You cannot just look at the decoded contents. If the coding system is > changed the encoded contents will change even if the buffer contents > didn't. I don't think that's correct. Loading a file does (basically) 1) put the bytes from the file into memory 2) decode them into internal representation 3) (set-buffer-modified-p nil) It's from that point on we care whether the contents of the buffer has changed, not from when we loaded the bytes from the file into memory. So the coding system is irrelevant. Or do you mean if the user explicitly changes the coding system... in the buffer? How does that happen? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no