From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benoit Coste Newsgroups: gmane.emacs.bugs Subject: bug#22551: 24.5; M-x grep: can't add option after default option list Date: Thu, 04 Feb 2016 17:21:10 +0100 Message-ID: <87y4b0tpjd.fsf@bcoste-MS-7752.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454602943 21474 80.91.229.3 (4 Feb 2016 16:22:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 16:22:23 +0000 (UTC) To: 22551@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 04 17:22:12 2016 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 1aRMfb-0005km-0j for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 17:22:11 +0100 Original-Received: from localhost ([::1]:42724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMfa-0001Oe-DA for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 11:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMfV-0001OX-Dg for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRMfS-0005up-7D for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:22:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMfS-0005ul-35 for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRMfR-0001TN-V2 for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Benoit Coste Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2016 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22551 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.14546028875617 (code B ref -1); Thu, 04 Feb 2016 16:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2016 16:21:27 +0000 Original-Received: from localhost ([127.0.0.1]:60450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRMet-0001SX-1N for submit@debbugs.gnu.org; Thu, 04 Feb 2016 11:21:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42748) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRMer-0001SK-RO for submit@debbugs.gnu.org; Thu, 04 Feb 2016 11:21:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRMel-0005mt-HR for submit@debbugs.gnu.org; Thu, 04 Feb 2016 11:21:20 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMel-0005mp-E1 for submit@debbugs.gnu.org; Thu, 04 Feb 2016 11:21:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMek-000136-7F for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:21:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRMeh-0005kg-0b for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:21:18 -0500 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRMeg-0005k0-Nj for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 11:21:14 -0500 Original-Received: by mail-wm0-x235.google.com with SMTP id g62so12131638wme.0 for ; Thu, 04 Feb 2016 08:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=QfFWgCHDPI3LY4OXcUqAJvMGJnDKKbdGFlu8Qyrjf6Y=; b=sMhkg25UB/u6hObbpV586EjwKYEjmd9OKScOPSyDugsZeD9BpsXZdTP9jeYXDLifgK GKNaXIHwQQ4bOZqZ9dgknFNWU6Fz0Rt/mtjMx7xliyBzgeXww302pC2adlN27ZBVrSXA 9In1tXL/u2zwwvsEmAWdDKFIw/QSR9Ug0vXExPCuXAza4OAKbNRuvMPy+QCkvHhoZL5m oVswaZnkpwMbyvjs4JJAGfdcypP4rk0znQOK0A3K0xQOh0hIKy5Z9iXHu2sYx/xmFkpM zt6IIkmpJpJlun0KFEtRfMxM5inLAGFhnAV4Un9A7rUNLDZiFl2/LfEF8v74kYi1r9qe Hiiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=QfFWgCHDPI3LY4OXcUqAJvMGJnDKKbdGFlu8Qyrjf6Y=; b=CyDBpkyXA+DikdNZlMgZnIgt4XchiMGEv1aOz4RmhEdUnK5IFzQ5iuAEXpdadJR3cM tkeaE+aSowPKb7Jxz6ERYZY5DO9d48lVgzd6Wqgnv8tIbkASme4uhAFLjIjEKmCyf23B jfn+L/QHsCbay/10VNgwXikAj3y9cW+WlUHfJvWwa08EtW3HOVUF5SUs3TiHE1sNlZEy VzxF32dq05NtkwqKBkdY/nhpE0Q9LoydFPFOSQ9kYZrRYnb8rOXif6Jgs/g0G7ZikbDa bs3MsQOCvYAmCNGR5pJS+gv0f0u/3xKMT6mCn/TLDlqhOCa8WShRGSaztUMsbT/59kVT xGyA== X-Gm-Message-State: AG10YOQX5n26jnh7jGnuQnWf9Pftk4P++hK9Pxqmqqv8nu5YVJccpqvcVgiuaoU4wKhQzA== X-Received: by 10.194.176.74 with SMTP id cg10mr10511046wjc.169.1454602873841; Thu, 04 Feb 2016 08:21:13 -0800 (PST) Original-Received: from bcoste-MS-7752 (bon74-1-88-184-136-108.fbx.proxad.net. [88.184.136.108]) by smtp.gmail.com with ESMTPSA id bg1sm12038632wjc.27.2016.02.04.08.21.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Feb 2016 08:21:12 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112406 Archived-At: Hi and thank you for supporting Emacs. It is cool that people do that and I should get involved at some point. It is not really a bug but an issue that has room for improvement. When I type M-x grep, this is what I get. Run grep (like this): grep --color -nH -e If if try to add an option after the '-e', let's say '-R', Emacs thinks the option is the pattern I am looking for instead of considering it as an option. In other words: 'grep --color -nH -e' with as following: ' -R foo bar' does not work. It fails to find the '-R' pattern. ' foo bar -R' works If this has already been mentioned, then sorry for the inconvenience. Cheers, Benoit In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu) of 2015-09-17 on lgw01-52, modified by Debian System Description: Ubuntu 15.10 Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=no --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: HTML Minor modes in effect: shell-dirtrack-mode: t desktop-save-mode: t ido-everywhere: t which-function-mode: t tooltip-mode: t electric-indent-mode: t menu-bar-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Quit [2 times] Mark saved where search started [2 times] Quit Grep exited abnormally with code 2 Please answer yes or no. Quit Grep exited abnormally with code 2 Grep finished (matches found) Quit Making completion list... Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode shell pcomplete grep compile tool-bar misearch multi-isearch term disp-table ehelp add-log xterm conf-mode vc-git js advice help-fns byte-opt bytecomp byte-compile cl-extra cconv thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs image nroff-mode sh-script smie executable python easymenu json comint ring ansi-color regexp-opt sgml-mode edmacro kmacro tango-dark-theme desktop frameset cl-loaddefs cl-lib ido time-date which-func imenu leuven-theme-autoloads package epg-config tooltip electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select 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 multi-tty emacs) Memory information: ((conses 16 250847 11724) (symbols 48 26846 0) (miscs 40 190 566) (strings 32 47419 6211) (string-bytes 1 1349254) (vectors 16 19510) (vector-slots 8 492318 3973) (floats 8 85 1388) (intervals 56 14050 0) (buffers 960 45) (heap 1024 29513 816))