From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#32395: 26.1; generated autoloads includes string properties if buffer is open Date: Sat, 11 Aug 2018 02:49:30 -0700 Message-ID: References: <838t5dmfc7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1533980890 31768 195.159.176.226 (11 Aug 2018 09:48:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2018 09:48:10 +0000 (UTC) Cc: 32395@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 11:48:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foQV8-00086p-I7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 11:48:02 +0200 Original-Received: from localhost ([::1]:59485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foQXF-00051v-08 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Aug 2018 05:50:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foQX8-00051q-KP for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 05:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foQX4-0002Pw-MR for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 05:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foQX4-0002PS-HK for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 05:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1foQX4-0006pb-79 for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2018 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Aug 2018 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32395-submit@debbugs.gnu.org id=B32395.153398098926233 (code B ref 32395); Sat, 11 Aug 2018 09:50:02 +0000 Original-Received: (at 32395) by debbugs.gnu.org; 11 Aug 2018 09:49:49 +0000 Original-Received: from localhost ([127.0.0.1]:47800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foQWr-0006p3-BS for submit@debbugs.gnu.org; Sat, 11 Aug 2018 05:49:49 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:34808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1foQWp-0006oq-CQ for 32395@debbugs.gnu.org; Sat, 11 Aug 2018 05:49:47 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id l7-v6so9913470ioj.1 for <32395@debbugs.gnu.org>; Sat, 11 Aug 2018 02:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S2yNu1BnzRHO96YrZpNhFSzKnzGD7aghZsm5Jh9aPY4=; b=AK3s34IUoYnUSNA92ZxDlJi9tTdzIxqAD1rttgN8q64WSpAC21esPtz1LvTvwJU+U1 vaE/uABIJgnym+N8LxYvwhffK/yOq7N5jhbGwatC8Rb2SYWV01fQs3W1SoKyQmQpjfv4 zAtN8cBHYYGvEkq6DaQYLQjm/4NmnU+uBBZWJ7Km6NYbrZYLMrtD39UCUI3u2W8di23u 3V+IbXa7zDCaz7zX+KhM78VxlqZhCg9h0xcYiwdpBu687hDKEbYF4FE33Z6YAdNbCn3H tH5w+gEHtkc5VHnEgXslMjtbI+SfPKW5g8IVECWP4xrpuPse44tgCYPRKnCIT6XT+fS+ y9UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S2yNu1BnzRHO96YrZpNhFSzKnzGD7aghZsm5Jh9aPY4=; b=OBpW36DNUVrASfOUJTEjiDr7CP+8TnOA+8iAa0a//JfgBEAbidK4gd/vmqlYSRXoiZ aREnIEKBSp7hWee5pDtkQbVo2LTwHqMmDsaUyPWDXLeDvPwCct4FGXkL9taRY3G9oSXk vJ58TuBSzGG5DccAUhFYNpAIYLk6hwaYfs0FkdPJp7dfEKZWiRKCk1XylzjGZyCZ4mJj lmHwePyu3OHRPsPgy1GIftQcdTm+OM0hI6K/TwXfw5ubm48xFwdXEnrIJJbDBDHtNdqi 3FcM6w71NVYamXCrGCxE9ySlDWWz7NqRBNmqTcjuaqMKEcfnGZShHGEwOxOByGhdnNop qaOw== X-Gm-Message-State: AOUpUlENmcVy/ruL6uD8GkdxXG+jLmfb6G38NYcQESSaymqFWB2LMNkx aGJS8JEMlbkBcGDN7TMngVsuYl3HyCJ7g5ryZVi+T9Ml X-Google-Smtp-Source: AA+uWPyq4aewnJpsNnETXdUL4deSC64/my5AJ8d13H3Yvucf8o/yly0Fyfhn5Hvgfxw3aBVxgD5B2fESoLIBxnWg7qs= X-Received: by 2002:a5e:d610:: with SMTP id w16-v6mr8441802iom.54.1533980981471; Sat, 11 Aug 2018 02:49:41 -0700 (PDT) In-Reply-To: <838t5dmfc7.fsf@gnu.org> 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: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149430 Archived-At: On Sat, Aug 11, 2018 at 2:18 AM Eli Zaretskii wrote: > > > From: Allen Li > > Date: Wed, 8 Aug 2018 00:09:22 -0700 > > > > The autoload generation code inserts a form with a string that may or > > may not have text properties, depending on if the buffer is already > > open. > > > > (if (fboundp 'register-definition-prefixes) > > (register-definition-prefixes "foo" > > '(#("foo-" 0 4 (fontified nil))))) > > > > (if (fboundp 'register-definition-prefixes) > > (register-definition-prefixes "foo" '("foo-"))) > > > > This makes autoload generation depend on the odd condition of whether > > the file under consideration is already open and fontified. > > Can you tell more about the use case where you see this? Does this > happen when the autoload files in the Emacs tree are generated? I use update-directory-autoloads to generate autoloads for personal Emacs Lisp files. The text changes depending on whether I have a buffer open for any of said files, which is annoying as I have the autoload file under source version control. If I edit one file and update autoloads, it will create a number of unrelated changes in version control, depending on whether I have any other files open in buffers or not. I don't see why there is a need to preserve the text properties of the package prefix in the autoload file, only when the file for which autoloads are being generated is open in a buffer. That seems like very silly behavior to me and I would fix it on principle even if it were not affecting my work flow.