From unknown Fri Aug 15 04:03:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8547 <8547@debbugs.gnu.org> To: bug#8547 <8547@debbugs.gnu.org> Subject: Status: 23.3.50; conf-mode-maybe rule grabs config.h.in Reply-To: bug#8547 <8547@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:03:36 +0000 retitle 8547 23.3.50; conf-mode-maybe rule grabs config.h.in reassign 8547 emacs submitter 8547 Reuben Thomas severity 8547 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 25 07:42:24 2011 Received: (at submit) by debbugs.gnu.org; 25 Apr 2011 11:42:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEKBM-0004an-8Q for submit@debbugs.gnu.org; Mon, 25 Apr 2011 07:42:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QEKBJ-0004aa-LQ for submit@debbugs.gnu.org; Mon, 25 Apr 2011 07:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEKBD-0002LM-53 for submit@debbugs.gnu.org; Mon, 25 Apr 2011 07:42:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:44709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEKBD-0002LI-3S for submit@debbugs.gnu.org; Mon, 25 Apr 2011 07:42:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]:37183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEKBB-0007nX-HU for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 07:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEKB9-0002KU-JB for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 07:42:13 -0400 Received: from exprod7ob117.obsmtp.com ([64.18.2.5]:42192) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QEKB9-0002KH-9J for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2011 07:42:11 -0400 Received: from mail-ww0-f50.google.com ([74.125.82.50]) (using TLSv1) by exprod7ob117.postini.com ([64.18.6.12]) with SMTP ID DSNKTbVeD56o3O9azG6x/cnztarFaq4YvqRs@postini.com; Mon, 25 Apr 2011 04:42:09 PDT Received: by wwc33 with SMTP id 33so2031096wwc.31 for ; Mon, 25 Apr 2011 04:42:06 -0700 (PDT) Received: by 10.216.48.197 with SMTP id v47mr3252661web.82.1303731726304; Mon, 25 Apr 2011 04:42:06 -0700 (PDT) Received: from canta (87-194-87-241.bethere.co.uk [87.194.87.241]) by mx.google.com with ESMTPS id d54sm2518605wej.34.2011.04.25.04.42.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2011 04:42:05 -0700 (PDT) From: Reuben Thomas To: bug-gnu-emacs@gnu.org Subject: 23.3.50; conf-mode-maybe rule grabs config.h.in Date: Mon, 25 Apr 2011 12:42:03 +0100 Message-ID: <87ipu2d0c4.fsf@sc3d.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) The current rule in files.el for conf-mode-maybe grabs config.h.in, which should instead go through the .in-stripping rule and end up in c-mode. >From the comment for that rule, it seems that the only time it should allow an extra (middle) suffix is when that is .local, so changing it to something like ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\(\\.local\\)?\\.[a-zA-Z0-9_-]+\\)?\\'" . conf-mode-maybe) i.e. removing period from the character class at the end and adding an explicit optional .local before it, should work. In GNU Emacs 23.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4) of 2011-04-24 on canta Windowing system distributor `The X.Org Foundation', version 11.0.11001000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: filladapt-mode: t recentf-mode: t show-paren-mode: t savehist-mode: t minibuffer-electric-default-mode: t iswitchb-mode: t icomplete-mode: t global-whitespace-mode: t global-auto-revert-mode: t desktop-save-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-s a u t o - m o d e - C-s C-s C-s C-s C-s C-a C-x C-f C-g C-x k C-x o C-x b C-x 1 C-x b C-g C-x b C-s M-< M-> M-< M-> M-< M-> M-< C-x k C-h v C-s c o n f - m o d e C-a M-< C-s c o n f - m o d d e e C-s C-x C-f C-x k C-s C-s C-a C-a C-SPC C-n C-k C-x b C-s c o n f g C-g C-x b C-x C-f ~ / r e p o / l i s e m a c s - 2 3 / l i s ` f f i l e s . e l C-s c o n f i g - - m o d e - m a y b e C-a C-SPC C-n C-k C-_ C-p C-SPC C-n M-x r e p o r t = - - e m a c s - b u g Recent messages: Mark set [7 times] Mark saved where search started Mark set Mark saved where search started [2 times] Mark set [2 times] Read only text copied to kill ring Mark saved where search started [2 times] Mark set Undo! Mark activated Load-path shadows: /home/rrt/.emacs.d/elpa/dictionary-1.8.7/link hides /usr/local/share/emacs/23.3.50/site-lisp/dictionary-el/link /home/rrt/.emacs.d/elpa/dictionary-1.8.7/connection hides /usr/local/share/emacs/23.3.50/site-lisp/dictionary-el/connection /home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary-init hides /usr/local/share/emacs/23.3.50/site-lisp/dictionary-el/dictionary-init /home/rrt/.emacs.d/elpa/dictionary-1.8.7/dictionary hides /usr/local/share/emacs/23.3.50/site-lisp/dictionary-el/dictionary /home/rrt/local/share/emacs/site-lisp/graphviz-dot-mode hides /usr/local/share/emacs/23.3.50/site-lisp/emacs-goodies-el/graphviz-dot-mode /home/rrt/local/share/emacs/site-lisp/dict hides /usr/local/share/emacs/23.3.50/site-lisp/emacs-goodies-el/dict /usr/local/share/emacs/23.3.50/site-lisp/css-mode/css-mode hides /usr/local/share/emacs/23.3.50/lisp/textmodes/css-mode /usr/share/emacs-snapshot/site-lisp/ruby1.8-elisp/ruby-mode hides /usr/local/share/emacs/23.3.50/lisp/progmodes/ruby-mode /usr/local/share/emacs/23.3.50/site-lisp/css-mode/css-mode hides /usr/share/emacs/site-lisp/css-mode/css-mode /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info /usr/local/share/emacs/23.3.50/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl /usr/local/share/emacs/23.3.50/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en /usr/local/share/emacs/23.3.50/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex /usr/local/share/emacs/23.3.50/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-fptex hides /usr/share/emacs/site-lisp/auctex/tex-fptex /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold /usr/local/share/emacs/23.3.50/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp /usr/local/share/emacs/23.3.50/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context /usr/local/share/emacs/23.3.50/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex /usr/local/share/emacs/23.3.50/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite /usr/local/share/emacs/23.3.50/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x /usr/local/share/emacs/23.3.50/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils mailheader canlock hashcash mail-utils emacsbug jka-compr find-func multi-isearch pp help-mode view sgml-mode js2-mode imenu js2-indent js2-parse js2-browse js2-highlight js2-ast js2-messages js2-scan js2-util js2-vars js2-externs vc-git conf-mode newcomment vc-bzr sha1 hex-util autoconf autoconf-mode face-remap filladapt flyspell completing-help recentf tree-widget wid-edit uniquify paren savehist minibuf-eldef iswitchb icomplete whitespace autorevert time cus-start cus-load desktop server php-mode etags cc-langs cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs speedbar sb-image ezimage dframe lua-mode regexp-opt comint ring ropemacs pymacs ffap ispell smart-quotes auto-dictionary-autoloads c-eldoc-autoloads dictionary-autoloads diff-git-autoloads dired-isearch-autoloads full-ack-autoloads guess-style-autoloads kill-ring-search-autoloads magit-autoloads mv-shell-autoloads tumble-autoloads http-post-simple-autoloads package reporter advice advice-preload yasnippet help-fns derived edmacro kmacro easymenu assoc cl cl-19 muse-autoloads emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode bbdb-autoloads preview-latex tex-site auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) -- http://rrt.sc3d.org/ From debbugs-submit-bounces@debbugs.gnu.org Sat May 28 15:28:00 2011 Received: (at 8547) by debbugs.gnu.org; 28 May 2011 19:28:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQPB1-00031S-UQ for submit@debbugs.gnu.org; Sat, 28 May 2011 15:28:00 -0400 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQPB1-00031I-5U for 8547@debbugs.gnu.org; Sat, 28 May 2011 15:27:59 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4SJRroA025108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 May 2011 15:27:53 -0400 Received: by furball (Postfix, from userid 1000) id 967EE16031F; Sat, 28 May 2011 15:27:52 -0400 (EDT) From: Chong Yidong To: Reuben Thomas Subject: Re: bug#8547: 23.3.50; conf-mode-maybe rule grabs config.h.in References: <87ipu2d0c4.fsf@sc3d.org> Date: Sat, 28 May 2011 15:27:52 -0400 In-Reply-To: <87ipu2d0c4.fsf@sc3d.org> (Reuben Thomas's message of "Mon, 25 Apr 2011 12:42:03 +0100") Message-ID: <87hb8epqvb.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8547 Cc: 8547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Reuben Thomas writes: > The current rule in files.el for conf-mode-maybe grabs config.h.in, > which should instead go through the .in-stripping rule and end up in > c-mode. > > From the comment for that rule, it seems that the only time it should > allow an extra (middle) suffix is when that is .local, so changing it to > something like > > ("[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\(\\.local\\)?\\.[a-zA-Z0-9_-]+\\)?\\'" . conf-mode-maybe) > > i.e. removing period from the character class at the end and adding an > explicit optional .local before it, should work. The comment actually says that config.foo should also work. I've committed a different fix based on reordering the rules. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat May 28 15:28:17 2011 Received: (at control) by debbugs.gnu.org; 28 May 2011 19:28:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQPBJ-00032I-6D for submit@debbugs.gnu.org; Sat, 28 May 2011 15:28:17 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QQPBH-000324-JA for control@debbugs.gnu.org; Sat, 28 May 2011 15:28:15 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4SJS9mq013894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 28 May 2011 15:28:10 -0400 Received: by furball (Postfix, from userid 1000) id 6587116031F; Sat, 28 May 2011 15:28:09 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8547 Date: Sat, 28 May 2011 15:28:09 -0400 Message-ID: <87sjry62wm.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8547 thanks From unknown Fri Aug 15 04:03:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 26 Jun 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator