From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#18593: 24.4.50; grep-files-aliases should use major mode instead Date: Wed, 01 Oct 2014 08:52:30 +0100 Message-ID: <87a95gfcqp.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412150070 13580 80.91.229.3 (1 Oct 2014 07:54:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 07:54:30 +0000 (UTC) To: 18593@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 09:54:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XZEjv-0007uj-E4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 09:54:23 +0200 Original-Received: from localhost ([::1]:48136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZEju-0002ir-Kk for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 03:54:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZEjj-0002fe-GM for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:54:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZEjb-0008Dy-BO for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:54:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZEjb-0008Du-7e for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZEja-0008HM-RF for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18593 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141214999731764 (code B ref -1); Wed, 01 Oct 2014 07:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Oct 2014 07:53:17 +0000 Original-Received: from localhost ([127.0.0.1]:56834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZEiq-0008GD-Je for submit@debbugs.gnu.org; Wed, 01 Oct 2014 03:53:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46970) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZEil-0008G1-6C for submit@debbugs.gnu.org; Wed, 01 Oct 2014 03:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZEic-0007mQ-Ny for submit@debbugs.gnu.org; Wed, 01 Oct 2014 03:53:10 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZEic-0007mM-Ki for submit@debbugs.gnu.org; Wed, 01 Oct 2014 03:53:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZEiV-0002bl-DU for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:53:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZEiO-0007ih-8N for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:52:55 -0400 Original-Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:35085) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XZEiN-0007iO-RV for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 03:52:48 -0400 Original-Received: (qmail 31877 invoked by uid 0); 1 Oct 2014 07:52:39 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy7.mail.unifiedlayer.com with SMTP; 1 Oct 2014 07:52:39 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id xpsb1o0052f2jeq01pseX5; Wed, 01 Oct 2014 07:52:38 -0600 X-Authority-Analysis: v=2.1 cv=fdw+lSgF c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=_cZRQKYwz3QA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=UXnY24sLNqMA:10 a=_j50_zkyB-NfstBy2E4A:9 a=yHSmjNqtaX_KByE3:21 a=bBY8Q86CGr7XsiIn:21 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=4K5tItrlF+UBgiXgcwUvDYKMyvw4vavu4xpwPJ0T2TE=; b=nTBa9yXWNZ8BANaJfriPVHwrH19wpCT4Bj46t+7H1Gn9uqxQS4sxf/LdUc63OYO8b8bAzTYp3C1+8PxVTNoYYYj2n2v+RQ9jGeozvjRVI+sHKtsqHtwjKgyB1yV5qXln; Original-Received: from [207.218.72.66] (port=37018 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1XZEiB-0002rB-Cx; Wed, 01 Oct 2014 01:52:35 -0600 X-Attribution: Tom X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 207.218.72.66 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93952 Archived-At: I was visiting a ".h" file that had a major mode cookie to set the major mode to C++. Then I tried vc-git-grep. It offered to default to searching "*.[ch]" files. This seems a bit sub-optimal to me, as Emacs already knows that the file is C++, not C. Defaulting to the "C++"-ish set of files would be more useful. Maybe grep-files-aliases could be based on major mode and not file extension; or maybe at least the major mode could be tried first. In GNU Emacs 24.4.50.10 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-09-26 on bapiya Repository revision: 117953 sdl.web@gmail.com-20140926001521-n3km8s3h27glxgf3 Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --prefix=/home/tromey/Emacs/install' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Compilation Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t which-function-mode: t projectile-global-mode: t projectile-mode: t global-auto-revert-mode: t desktop-save-mode: t erc-services-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t savehist-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Recent input: C-x b E v e T h C-s p e r f C-r C-a M-v C-z C-g C-l C-x b n s P e r h C-M-p C-M-p C-v C-v C-s N o w C-M-p C-M-n C-M-p C-n M-f M-f M-b M-x v c - g i t - g r e p C-g M-x v c - g i t - g r e p * C-x o C-x 1 C-z n C-h f v c - g i t - g r C-x o C-e C-u C-b C-x 1 C-s g r e p - f C-w C-w C-s C-s C-a C-u C-u C-n C-n C-n C-p C-u C-u C-f C-h f C-x o C-n C-f C-x 1 C-s C-s C-s C-s C-s C-s C-s M-< C-s C-s C-a C-u C-n C-u C-n C-l C-z n C-x b E M C-o C-o g r e p - f i l e s - a l i a s e s SPC u s e SPC t h e SPC e x t e n s i o n b u t SPC i t SPC s h o u l d SPC u s e SPC t h e SPC m a j o r SPC m o d e SPC i n s t e a d C-x C-s C-c b C-s d o c C-a C-c C-c C-x o C-x 1 C-s C-g C-u C-u C-n C-u C-u C-n C-n C-n C-c C-c C-x 1 C-c c y C-x o C-x 1 M-> C-z n C-z n M-x r e p o r t - e m Recent messages: Mark saved where search started Mark set Mark saved where search started Auto-saving...done Saving file /home/tromey/EMACS... Wrote /home/tromey/EMACS Mark saved where search started Quit Saving file /home/tromey/firefox-git/gecko-dev/docshell/base/nsDocShell.cpp... Wrote /home/tromey/firefox-git/gecko-dev/docshell/base/nsDocShell.cpp Load-path shadows: /home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /home/tromey/Emacs/install/share/emacs/24.4.50/lisp/textmodes/css-mode /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/24.4.50/lisp/play/bubbles Features: (macros bbdb-sc supercite regi nnir iso-transl webjump nnregistry url-http url-gw url-auth url-queue find-file ido gdb-shell shell ffap xterm whitespace log-view gnus-fun flow-fill shr-color color gnus-html xml url-cache mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars shr browse-url mailalias shadow mail-hist emacsbug bbdb-gui bbdb-hooks mule-util sort smiley gnus-cite mm-archive gnus-async gnus-bcklg qp gnus-ml disp-table gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf mail-extr bbdb-com warnings cl gnutls network-stream starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry registry eieio-base gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo smtpmail sendmail gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus gnus-ems nnheader eieio-opt speedbar sb-image ezimage dframe log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util copyright dabbrev misearch multi-isearch help-mode debug cl-macs gv org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs goto-addr add-log gud conf-mode sgml-mode python dired-aux dired jka-compr smerge-mode diff-mode easy-mmode vc-arch vc-mtn vc-hg bug-reference js json cc-mode cc-fonts cc-guess cc-menus cc-cmds vc-bzr vc-sccs vc-svn vc-cvs vc-rcs vc-git flyspell ispell eldoc diminish appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs which-func imenu projectile edmacro kmacro pkg-info find-func lisp-mnt epl grep compile dash s minimap autorevert filenotify desktop frameset cus-start cus-load status erc-services erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete erc-track erc-match erc-button wid-edit cl-loaddefs cl-lib erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat format-spec auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache thingatpt pp advice help-fns vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs bbdb timezone ange-ftp comint ansi-color ring server savehist dwarf-mode-autoloads jabber-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info easymenu weblogger-autoloads package bbdb-autoloads time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 1573687 264282) (symbols 48 124378 0) (miscs 40 42004 7100) (strings 32 500107 77702) (string-bytes 1 15604811) (vectors 16 103278) (vector-slots 8 2432023 210343) (floats 8 677 930) (intervals 56 136269 12462) (buffers 976 347) (heap 1024 275932 57017)) Tom