From unknown Sun Jun 22 04:11:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27481: 25.1; Autoloads in bug-references.el Resent-From: Yuri Khan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jun 2017 10:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27481 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 27481@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149838713631686 (code B ref -1); Sun, 25 Jun 2017 10:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jun 2017 10:38:56 +0000 Received: from localhost ([127.0.0.1]:36322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP4wR-0008F0-NJ for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP4wP-0008Em-MF for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP4wJ-0008Gv-4e for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dP4wJ-0008Gr-1W for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP4wH-0005be-Fu for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP4wG-0008Fb-4G for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:45 -0400 Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:32981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dP4wF-0008Ep-UQ for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:44 -0400 Received: by mail-io0-x22c.google.com with SMTP id h64so21167706iod.0 for ; Sun, 25 Jun 2017 03:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=3TpqTWbHv5sjtF7vOKSi6eAEy1V7W3h+pfxmM3FqCWM=; b=k7+nly0OQiUxSEhpqR2Bs/DdIiR4teEf82lWLO9POB3+LXsq+BgJN6Ep5cW0cM3SiU hjC/OMxLI2XMtwq1xNgz4NltcN0s7OK3jWYM2M8uqkeF8Po3/P2vDFyTtYYe9K8ciaWg ly5jP0PNgxazGNcC7K0b0AX/9VJSO2LVcIKHDRLf5CDkpisMvUfBvDG0hxp71l1NtG1u 1b/XlflYS9vnlqW8UZO9fGXaohXAP6lsqUnWBaLQbHlsKGugR0r6J2bKjSP2fCTehXLl 2mbyCmFlsDEESER09e90kiUqc+6TS+tUzV2R0JpF43QfbuzmpbnpAZzMLJQOa7m+scjA okRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=3TpqTWbHv5sjtF7vOKSi6eAEy1V7W3h+pfxmM3FqCWM=; b=gr/uxO/HSke8TwOjbWayZ+572Rp6GVen3XddPLiKcRtDseYttLKeNpP46Qg+xBSaF4 J9VXHtKQsAcDrhUuEu/8/NaFL5gR9yzP3WqwIGocKJst3FopkdE5EeChDyYNvBHc/e4a PMqit/LePxSgVO9RLT0o5fP8JBdipcripQOaPb23MkUOjCX2y6BcWtmN/aPn9ulx1z8/ OmaL+natCCYw/P+r5ss3E/8kUuoAzvYY2f6JZ9vnbHHyjNWB/AepjuCIayXAtAWyhvRk EzW6svEL07U1u2cKdX8Ylgo7WcRjbMqiA0uZjOb+xdDqZxhZ82iI/GrCHOEgvzx1UCEn npxw== X-Gm-Message-State: AKS2vOyIYBJYFjjNj6zQ1NGdOXf7m5oAX+959S/XYBRBTwv/gteci1HA h/en1vuUIqbhUaAsIqlu3EzBm/wbVjGW X-Received: by 10.107.35.5 with SMTP id j5mr17384073ioj.52.1498387121199; Sun, 25 Jun 2017 03:38:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.122.147 with HTTP; Sun, 25 Jun 2017 03:38:20 -0700 (PDT) From: Yuri Khan Date: Sun, 25 Jun 2017 17:38:20 +0700 X-Google-Sender-Auth: s4t-8mll28LXSZcC5pUBTWu26ig Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) $ emacs -Q C-x C-f ~/.emacs.d/magit Observed behavior: The local variables list in [=E2=80=A6]/.emacs.d/magit/ contains values that may not be safe (*). [=E2=80=A6] * bug-reference-bug-regexp: "#\\(?2:[0-9]+\\)" bug-reference-url-format: "https://github.com/magit/magit/issues/%s" In bug-reference.el: ;;;###autoload (put 'bug-reference-url-format 'safe-local-variable (lambda (s) (or (stringp s) (and (symbolp s) (get s 'bug-reference-url-format))))) (defcustom bug-reference-bug-regexp "\\([Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" "Regular expression matching bug references. The second subexpression should match the bug reference (usually a numb= er)." :type 'string :safe 'stringp :version "24.3" ; previously defconst :group 'bug-reference) The relevant section in loaddefs.el: ;;; Generated autoloads from progmodes/bug-reference.el (put 'bug-reference-url-format 'safe-local-variable (lambda (s) (or (stringp s) (and (symbolp s) (get s 'bug-reference-url-format))))) (autoload 'bug-reference-mode "bug-reference" "\ Toggle hyperlinking bug references in the buffer (Bug Reference mode). With a prefix argument ARG, enable Bug Reference mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. \(fn &optional ARG)" t nil) (autoload 'bug-reference-prog-mode "bug-reference" "\ Like `bug-reference-mode', but only buttonize in comments and strings. \(fn &optional ARG)" t nil) Should the (defcustom bug-reference-bug-regexp =E2=80=A6) be autoloaded in = order for its :safe declaration to be taken in account? (Does that work? In newcomment.el, I saw an autoloaded defcustom followed by an autoloaded 'put =E2=80=A6 'safe-local-variable.) In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-13, modified by Debian built on lgw01-55 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.2 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: en_RU.UTF-8 value of $LC_NUMERIC: en_RU.UTF-8 value of $LC_TIME: en_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 86460 5246) (symbols 48 19757 0) (miscs 40 49 121) (strings 32 14400 4851) (string-bytes 1 410516) (vectors 16 11752) (vector-slots 8 430954 2775) (floats 8 164 10) (intervals 56 247 0) (buffers 976 18) (heap 1024 18543 974)) From unknown Sun Jun 22 04:11:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Yuri Khan Subject: bug#27481: closed (Re: bug#27481: 25.1; Autoloads in bug-references.el) Message-ID: References: <9a7ezmrdod.fsf@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 27481 X-Gnu-PR-Package: emacs Reply-To: 27481@debbugs.gnu.org Date: Wed, 05 Jul 2017 17:35:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1499276102-22394-1" This is a multi-part message in MIME format... ------------=_1499276102-22394-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #27481: 25.1; Autoloads in bug-references.el which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27481@debbugs.gnu.org. --=20 27481: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D27481 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1499276102-22394-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 27481-done) by debbugs.gnu.org; 5 Jul 2017 17:34:03 +0000 Received: from localhost ([127.0.0.1]:53665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSoBe-0005nr-Lc for submit@debbugs.gnu.org; Wed, 05 Jul 2017 13:34:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57181) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSoBd-0005nL-2i for 27481-done@debbugs.gnu.org; Wed, 05 Jul 2017 13:34:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSoBX-00056O-0l for 27481-done@debbugs.gnu.org; Wed, 05 Jul 2017 13:33:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSoBW-00056K-U9 for 27481-done@debbugs.gnu.org; Wed, 05 Jul 2017 13:33:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dSoBW-0001nn-FU; Wed, 05 Jul 2017 13:33:54 -0400 From: Glenn Morris To: 27481-done@debbugs.gnu.org Subject: Re: bug#27481: 25.1; Autoloads in bug-references.el References: X-Spook: CBP White Powder Police AK-47 Beltran-Leyva Saudi Arabia X-Ran: Pd+cT-^H@UmsQ1|jE2L({o^F#@Cj!V]lO.4svh}ptD#B/;,FMi5};4K`.'4gja12z:g"?8 X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 05 Jul 2017 13:33:54 -0400 In-Reply-To: (Yuri Khan's message of "Sun, 25 Jun 2017 17:38:20 +0700") Message-ID: <9a7ezmrdod.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27481-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 26.1 Thanks; fixed. commit 8ad9567 Date: Wed Jul 5 13:32:26 2017 -0400 Small fix for bug-reference.el * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Autoload safety property. (Bug#27481) diff --git a/lisp/progmodes/bug-reference.el b/lisp/progmodes/bug-reference.el index 210f035..13c52a4 100644 --- a/lisp/progmodes/bug-reference.el +++ b/lisp/progmodes/bug-reference.el @@ -73,10 +73,12 @@ so that it is considered safe, see `enable-local-variables'.") "Regular expression matching bug references. The second subexpression should match the bug reference (usually a number)." :type 'string - :safe 'stringp :version "24.3" ; previously defconst :group 'bug-reference) +;;;###autoload +(put 'bug-reference-bug-regexp 'safe-local-variable 'stringp) + (defun bug-reference-set-overlay-properties () "Set properties of bug reference overlays." (put 'bug-reference 'evaporate t) ------------=_1499276102-22394-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Jun 2017 10:38:56 +0000 Received: from localhost ([127.0.0.1]:36322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP4wR-0008F0-NJ for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dP4wP-0008Em-MF for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP4wJ-0008Gv-4e for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dP4wJ-0008Gr-1W for submit@debbugs.gnu.org; Sun, 25 Jun 2017 06:38:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP4wH-0005be-Fu for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP4wG-0008Fb-4G for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:45 -0400 Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:32981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dP4wF-0008Ep-UQ for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2017 06:38:44 -0400 Received: by mail-io0-x22c.google.com with SMTP id h64so21167706iod.0 for ; Sun, 25 Jun 2017 03:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=3TpqTWbHv5sjtF7vOKSi6eAEy1V7W3h+pfxmM3FqCWM=; b=k7+nly0OQiUxSEhpqR2Bs/DdIiR4teEf82lWLO9POB3+LXsq+BgJN6Ep5cW0cM3SiU hjC/OMxLI2XMtwq1xNgz4NltcN0s7OK3jWYM2M8uqkeF8Po3/P2vDFyTtYYe9K8ciaWg ly5jP0PNgxazGNcC7K0b0AX/9VJSO2LVcIKHDRLf5CDkpisMvUfBvDG0hxp71l1NtG1u 1b/XlflYS9vnlqW8UZO9fGXaohXAP6lsqUnWBaLQbHlsKGugR0r6J2bKjSP2fCTehXLl 2mbyCmFlsDEESER09e90kiUqc+6TS+tUzV2R0JpF43QfbuzmpbnpAZzMLJQOa7m+scjA okRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=3TpqTWbHv5sjtF7vOKSi6eAEy1V7W3h+pfxmM3FqCWM=; b=gr/uxO/HSke8TwOjbWayZ+572Rp6GVen3XddPLiKcRtDseYttLKeNpP46Qg+xBSaF4 J9VXHtKQsAcDrhUuEu/8/NaFL5gR9yzP3WqwIGocKJst3FopkdE5EeChDyYNvBHc/e4a PMqit/LePxSgVO9RLT0o5fP8JBdipcripQOaPb23MkUOjCX2y6BcWtmN/aPn9ulx1z8/ OmaL+natCCYw/P+r5ss3E/8kUuoAzvYY2f6JZ9vnbHHyjNWB/AepjuCIayXAtAWyhvRk EzW6svEL07U1u2cKdX8Ylgo7WcRjbMqiA0uZjOb+xdDqZxhZ82iI/GrCHOEgvzx1UCEn npxw== X-Gm-Message-State: AKS2vOyIYBJYFjjNj6zQ1NGdOXf7m5oAX+959S/XYBRBTwv/gteci1HA h/en1vuUIqbhUaAsIqlu3EzBm/wbVjGW X-Received: by 10.107.35.5 with SMTP id j5mr17384073ioj.52.1498387121199; Sun, 25 Jun 2017 03:38:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.122.147 with HTTP; Sun, 25 Jun 2017 03:38:20 -0700 (PDT) From: Yuri Khan Date: Sun, 25 Jun 2017 17:38:20 +0700 X-Google-Sender-Auth: s4t-8mll28LXSZcC5pUBTWu26ig Message-ID: Subject: 25.1; Autoloads in bug-references.el To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) $ emacs -Q C-x C-f ~/.emacs.d/magit Observed behavior: The local variables list in [=E2=80=A6]/.emacs.d/magit/ contains values that may not be safe (*). [=E2=80=A6] * bug-reference-bug-regexp: "#\\(?2:[0-9]+\\)" bug-reference-url-format: "https://github.com/magit/magit/issues/%s" In bug-reference.el: ;;;###autoload (put 'bug-reference-url-format 'safe-local-variable (lambda (s) (or (stringp s) (and (symbolp s) (get s 'bug-reference-url-format))))) (defcustom bug-reference-bug-regexp "\\([Bb]ug ?#?\\|[Pp]atch ?#\\|RFE ?#\\|PR [a-z-+]+/\\)\\([0-9]+\\(?:#[0-9]+\\)?\\)" "Regular expression matching bug references. The second subexpression should match the bug reference (usually a numb= er)." :type 'string :safe 'stringp :version "24.3" ; previously defconst :group 'bug-reference) The relevant section in loaddefs.el: ;;; Generated autoloads from progmodes/bug-reference.el (put 'bug-reference-url-format 'safe-local-variable (lambda (s) (or (stringp s) (and (symbolp s) (get s 'bug-reference-url-format))))) (autoload 'bug-reference-mode "bug-reference" "\ Toggle hyperlinking bug references in the buffer (Bug Reference mode). With a prefix argument ARG, enable Bug Reference mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. \(fn &optional ARG)" t nil) (autoload 'bug-reference-prog-mode "bug-reference" "\ Like `bug-reference-mode', but only buttonize in comments and strings. \(fn &optional ARG)" t nil) Should the (defcustom bug-reference-bug-regexp =E2=80=A6) be autoloaded in = order for its :safe declaration to be taken in account? (Does that work? In newcomment.el, I saw an autoloaded defcustom followed by an autoloaded 'put =E2=80=A6 'safe-local-variable.) In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-13, modified by Debian built on lgw01-55 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.2 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: en_RU.UTF-8 value of $LC_NUMERIC: en_RU.UTF-8 value of $LC_TIME: en_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 86460 5246) (symbols 48 19757 0) (miscs 40 49 121) (strings 32 14400 4851) (string-bytes 1 410516) (vectors 16 11752) (vector-slots 8 430954 2775) (floats 8 164 10) (intervals 56 247 0) (buffers 976 18) (heap 1024 18543 974)) ------------=_1499276102-22394-1--