From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2257: 23.0.90; grep-files-history has inappropriate default value Date: Mon, 9 Feb 2009 15:46:56 -0800 Message-ID: <000001c98b10$b1c9f4b0$0200a8c0@us.oracle.com> Reply-To: Drew Adams , 2257@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234224285 883 80.91.229.12 (10 Feb 2009 00:04:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 00:04:45 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 01:05:55 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWg7a-0000IL-OR for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 01:05:14 +0100 Original-Received: from localhost ([127.0.0.1]:51252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWg6H-00048b-Do for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Feb 2009 19:03:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWg6C-00048M-Jk for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 19:03:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWg6B-00047p-TA for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 19:03:36 -0500 Original-Received: from [199.232.76.173] (port=42745 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWg6B-00047h-O7 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 19:03:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35997) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWg6B-0004Pi-3z for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2009 19:03:35 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A03XEb010294; Mon, 9 Feb 2009 16:03:33 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n19Nt471008092; Mon, 9 Feb 2009 15:55:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 09 Feb 2009 23:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2257 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12342232326714 (code B ref -1); Mon, 09 Feb 2009 23:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Feb 2009 23:47:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n19Nl9hO006708 for ; Mon, 9 Feb 2009 15:47:10 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:50730) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LWfoP-0003Pi-5l for emacs-pretest-bug@gnu.org; Mon, 09 Feb 2009 18:45:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LWfqF-00034L-0l for emacs-pretest-bug@gnu.org; Mon, 09 Feb 2009 18:47:08 -0500 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:42851 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWfqE-00034F-N4 for emacs-pretest-bug@gnu.org; Mon, 09 Feb 2009 18:47:06 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n19Nm1bZ028101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 9 Feb 2009 23:48:02 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n19Nl4kA017293 for ; Mon, 9 Feb 2009 23:47:06 GMT Original-Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Feb 2009 23:46:58 +0000 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcmLELEXI0tY2+8wRMKUzhQE1toufA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010209.4990C076.0004:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 09 Feb 2009 19:03:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25092 gmane.emacs.pretest.bugs:23878 Archived-At: emacs -Q M-x load-library grep C-h v grep-files-history shows: grep-files-history is a variable defined in `grep.el'. Its value is ("ch" "el") Documentation: Not documented as a variable. Besides the fact that there should be a doc string, the default value should be nil. `grep' already DTRT to fill the history with appropriate default values for `M-n'. The default value of `grep-files-history' is used only when no appropriate default values are found. And in that case, no default values should be available - it makes no sense to propose inappropriate values. There is no reason for the (first) default value to be proposed as [ch] in all cases - or in any cases where a .c or .h file is not expected. Better for Emacs to simply say that no default value is available. In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-01 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)'