Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 70507) by debbugs.gnu.org; 20 May 2024 20:56:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 16:56:57 2024 Received: from localhost ([127.0.0.1]:44752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s9A41-0001Tz-1A for submit <at> debbugs.gnu.org; Mon, 20 May 2024 16:56:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jao@HIDDEN>) id 1s9A3x-0001Tt-QZ for 70507 <at> debbugs.gnu.org; Mon, 20 May 2024 16:56:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jao@HIDDEN>) id 1s9A3n-0006UN-NQ; Mon, 20 May 2024 16:56:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=vgxRy55+gbJXuBU6L0/Y6uecAjjys1b5lS79C4ZZTyg=; b=gLdWa+GoEV/nTdJihBlv /kGleMCu8WEn27wou51Ie4wCTrbWEw18/oRmIVf+a8zf39sYrTlPPDVoJepFPEW8i5lQGM7PPE1OG Hgekx1GWeot2sqRlCw3RbgwojuhIqApUf0oI7tQdvTv8kkMJTAl6l6D64cyROlqSwO9xzaOu2gr7z sxeMSpvG0Gnrlfj9aVGhFmJGjU5JWl/ECK8fRfLv/tUaOj+gdL6xCzZgz0AY6tF2NiCpg8Y5sdlop cRN6kKr60RowDAcb6Pcgy39MVQOcjkwYhSswJ/Z+KzKJkaNnKkwnyzuUrJKN5T2NxkqYmj0Jfpm3m fysnDsSdy0EL2g==; From: jao <jao@HIDDEN> To: "Jim Porter" <jporterbugs@HIDDEN> Subject: Re: bug#70507: 30.0.50; eshell: grep -H and -n flags are hardcoded and the latter cannot be overwritten In-Reply-To: <79d16d39-e024-b65a-bcb1-827f04dc6a78@HIDDEN> (Jim Porter's message of "Mon, 20 May 2024 13:52:29 -0700") References: <87plui421d.fsf@HIDDEN> <CADwFkm=ymR0SQ4umA0LYmFfkc76Gtn_NwXuSw9G-+Rzefgthog@HIDDEN> <esnSBC18-_D7vqBxdaEsoQ3AwPc_DLUFWRpN6bKpsfG613DvOglznWBrwUVDChJnBdGC5myGyaCuHMftOfN6Vg==@protonmail.internalid> <79d16d39-e024-b65a-bcb1-827f04dc6a78@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: <https://jao.io/> Date: Mon, 20 May 2024 21:56:39 +0100 Message-ID: <87a5kk8ans.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70507 Cc: 70507 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) On Mon, May 20 2024, Jim Porter wrote: > On 5/20/2024 1:18 PM, Stefan Kangas wrote: >> Jose A Ortega Ruiz <jao@HIDDEN> writes: >> >>> I've noticed that -Hn flags are hardcoded when calling eshell's grep >>> command. Specially in pipes, where -H prints a noisy (standard input) >>> prefix for every line, those flags are rarely what I personally want, >>> and I'd like to have the option to disable them. For -H i can add -h to >>> the call, or even redefine eshell/grep to not use -H, but there's no >>> flag to disable -n. >> >> Jim, any comments on the above bug report? > > It would probably be reasonable to define some new > 'eshell-grep-default-interactive-flags' variable, defaulting to "-nH" > and only taking effect when being redirected to a compilation buffer. > Maybe 'eshell-compile' could also take an EXTRA-ARGS argument that holds > extra args to use. There are a few edge cases here I haven't fully > though through, so maybe this is all wrong. > > In the short term though, you have a few options: > > 1. "alias grep '*grep $@*'": This just makes "grep" always use the real > "grep" program on your computer, with no fancy compilation buffers. > > 2. "alias grep 'compile --mode=3Dgrep-mode grep $@*'": This ensures that > "grep" opens in a compilation buffer when called interactively (and not > in a pipeline, etc), but only with the flags you explicitly specify. Thanks for your feedback. For my use cases, solution 2 is probably covering all the bases. Cheers, jao --=20 =E2=80=9CI=E2=80=99m all these words, all these strangers, this dust of wor= ds, with no ground for their setting, no sky for their dispersing.=E2=80=9D - Samuel Beckett, The Unnamable
bug-gnu-emacs@HIDDEN
:bug#70507
; Package emacs
.
Full text available.Received: (at 70507) by debbugs.gnu.org; 20 May 2024 20:53:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 16:53:45 2024 Received: from localhost ([127.0.0.1]:44732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s9A0v-0001Qu-Gf for submit <at> debbugs.gnu.org; Mon, 20 May 2024 16:53:45 -0400 Received: from mail-pf1-f180.google.com ([209.85.210.180]:43388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1s9A0q-0001Qm-VT for 70507 <at> debbugs.gnu.org; Mon, 20 May 2024 16:53:44 -0400 Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6f6b1ac1e90so872165b3a.1 for <70507 <at> debbugs.gnu.org>; Mon, 20 May 2024 13:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716238350; x=1716843150; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=vlCO2AOGyTfTi/G8Wryp/HXojoUSJUnEP+harqlcuuQ=; b=jPK824xmQECT4Ate7kUOblvWNtVLqcDnjmK9xgMxX7Bl1Y0GzYWfbJ8JlQqQ1bomM3 Lal4Pj2NGdzR3HV1C4XZyRunhngOB7hL/fHI+rou9UfA8XOLwFWQqPAAFgQNfgvisVqS 8CqjW4WS/5HHok7BG0hPTa06sj4qEw9my04AHlS7bMQubGXNXusbuIagtvcLOeIjbNG2 XKbyQo/tf48y/oN6Ms6LJ+JFAQJ5ao7wCmKCxMQxiJ2udgnn1eHCXRmrOwR9mrihW/0m dy+RVibB3Ws8beWGzyV6TPDtZiSaHq/XKV35ndhG0oQlT2jimRsIFxYqacRxs2v403MK a8rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716238350; x=1716843150; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vlCO2AOGyTfTi/G8Wryp/HXojoUSJUnEP+harqlcuuQ=; b=N7SVZ98Sv4nh9t/TlM80VkKYbaCiiXW//20UoY+0bmJQqtUorO3ZM6VpNsQ88sPJE2 6thtV0fSZlyt8LJ6mVL+aZew2ymGkY0XTb3ZbbrWB/740cQjXirR8jh6+/hCgmIun/sU zdjqpIweoZVHEydlGFTQ31xpKpjbAbRy6p4gKtglWavyH53y/Xhwj2toYQf4QpKtqGzE UUQYxDvIDTS2iAj8y+W2FP0O4GdVvKgWdn0RumpFqz0a/1HJ3hRmgZyCU0OJ8QGs8MNY hbcdPcT9yQjOUkU5pPzT9xGqusBVdAnxtr27TtQmrbVbzAgz1Eh40YGxPTYYor306Ag8 xb5w== X-Forwarded-Encrypted: i=1; AJvYcCV8fAPkyBUcwJzc8WFj36JATDqVinPCQqx9fU12LfLQNg0m3npA9unVpd+l36LdaEMez80RN0aJY2H5Rf6KPszou9rlyF4= X-Gm-Message-State: AOJu0YxIJuTJhn6Q0nnXAZ3jSw0RKlnjOmarTZSGEZSECYzCBsm59Xvp lrhHYwc/f6IwdG7pJGXE3IBO0oj8lhKbwI3AwiwIGUOAioIZ2m6o X-Google-Smtp-Source: AGHT+IF5k04kp6Pzleu2buQKW4TdBdrtDwJ3wFsE6+pcTDYF/lefc+bVU/xzPSTuD8zmPwA0FH2frA== X-Received: by 2002:a05:6a21:2d8c:b0:1b0:c1:d8be with SMTP id adf61e73a8af0-1b1ca3b09efmr10082872637.1.1716238350235; Mon, 20 May 2024 13:52:30 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-6f6690c711csm11738803b3a.40.2024.05.20.13.52.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 May 2024 13:52:29 -0700 (PDT) Message-ID: <79d16d39-e024-b65a-bcb1-827f04dc6a78@HIDDEN> Date: Mon, 20 May 2024 13:52:29 -0700 MIME-Version: 1.0 Subject: Re: bug#70507: 30.0.50; eshell: grep -H and -n flags are hardcoded and the latter cannot be overwritten Content-Language: en-US To: Stefan Kangas <stefankangas@HIDDEN>, Jose A Ortega Ruiz <jao@HIDDEN>, 70507 <at> debbugs.gnu.org References: <87plui421d.fsf@HIDDEN> <CADwFkm=ymR0SQ4umA0LYmFfkc76Gtn_NwXuSw9G-+Rzefgthog@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <CADwFkm=ymR0SQ4umA0LYmFfkc76Gtn_NwXuSw9G-+Rzefgthog@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70507 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 5/20/2024 1:18 PM, Stefan Kangas wrote: > Jose A Ortega Ruiz <jao@HIDDEN> writes: > >> I've noticed that -Hn flags are hardcoded when calling eshell's grep >> command. Specially in pipes, where -H prints a noisy (standard input) >> prefix for every line, those flags are rarely what I personally want, >> and I'd like to have the option to disable them. For -H i can add -h to >> the call, or even redefine eshell/grep to not use -H, but there's no >> flag to disable -n. > > Jim, any comments on the above bug report? It would probably be reasonable to define some new 'eshell-grep-default-interactive-flags' variable, defaulting to "-nH" and only taking effect when being redirected to a compilation buffer. Maybe 'eshell-compile' could also take an EXTRA-ARGS argument that holds extra args to use. There are a few edge cases here I haven't fully though through, so maybe this is all wrong. In the short term though, you have a few options: 1. "alias grep '*grep $@*'": This just makes "grep" always use the real "grep" program on your computer, with no fancy compilation buffers. 2. "alias grep 'compile --mode=grep-mode grep $@*'": This ensures that "grep" opens in a compilation buffer when called interactively (and not in a pipeline, etc), but only with the flags you explicitly specify.
bug-gnu-emacs@HIDDEN
:bug#70507
; Package emacs
.
Full text available.Received: (at 70507) by debbugs.gnu.org; 20 May 2024 20:19:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 20 16:19:54 2024 Received: from localhost ([127.0.0.1]:44556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s99UA-00010R-CN for submit <at> debbugs.gnu.org; Mon, 20 May 2024 16:19:54 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:42075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1s99U3-00010J-Vc for 70507 <at> debbugs.gnu.org; Mon, 20 May 2024 16:19:53 -0400 Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-572c65cea55so12839194a12.0 for <70507 <at> debbugs.gnu.org>; Mon, 20 May 2024 13:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716236317; x=1716841117; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=wIv+zmqaOX6FPKrYmyx1Nsg3Zc0FShggSP3pMA7Qa5M=; b=Hj1hhqehk6RVjk7Mneh5d5d/nyrqD3IiMBWwpXm0dxcn9+W4eUjPAdz/iAk/0zvJJz lhNt71eAWLIxZOERoIkYcLhsoEkos3kglkxg5FEEP1p05uieFQS1Kn8uTfez21sSH4Zk zJGlHP11q9Y86GS3FZwTXziXE2mBekA3cjQbqJFqxBvv3S7HUOan0alA+1xAAv0RYtus rz2HfTgsMrTPNcGZJCefRF2BixNoEprhgjAV/Eyncw+DL+pBuk+X904bmjzE7Q365JhU 3RMBmm6K3LSCTT7W2prpbtheUSn+lcNvm2aFBJu7zaUtVXeAPhKBDQNzXUzcGsE7Lhkm wWiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716236317; x=1716841117; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wIv+zmqaOX6FPKrYmyx1Nsg3Zc0FShggSP3pMA7Qa5M=; b=PjKvejw89owxuJkUn391dq27F3SvFflDEGU5F58BqiUcQ9iSxS/HjT56jLT394GKDq WyC5B9kN5vydTHnRXfYimojqaLTyZGpJDCzw/kOZfLWWNdTYKqN2AMz22zVoWKbAV7r3 daxui+tjG+Hv0Jy+0WJDjWZOvEIicuXo/g+6fYy857Ku8h8/yFt46MFeavX9E9nPwMlo U1vREddVtaa1HAcuT7EWYV5INSPlpImEt4Fz1wh3CuQ9sPNVvKbY/P5kJODw8lzYnK2a HjjhL+rj+HjhgOPqUK0Y8HKa4SQdNMZEy2Dqazes7Z+hjvYoEHLJCot7Xb9TeO8XK13o hfow== X-Forwarded-Encrypted: i=1; AJvYcCXgJrjRvUtsqhbcgCxDfw1kWZUp1R4CFmMbfACoPHUdMYuYVJe8cVdvt92ZpYX4AUqIwpd5l5hhnIDTZ38S3XZsLhePLYU= X-Gm-Message-State: AOJu0YxNOuWG8es2LfUL6wqb5IoK3Aa2FbevlNimM9HxfZc4t2QWRAVr vaMLY9N9RnNLnHkxnPpLf8d0tjnGIpnzgv+ROWAuq2EQnJPm9GuupZW6yQ9KfjUnFiITd2Seyi5 06LVHDtxITpqZtrTHqAl3Y/13mqEG3szE X-Google-Smtp-Source: AGHT+IF1tqAWh2FjZyE+YF9fX7UAIFzmJZ7TczH9CDdPgcoZLyxUCZRz/+52d1dJpVE63vepoSy/n8HHAZXp6JcIi0U= X-Received: by 2002:a50:8e07:0:b0:575:17ca:7f7b with SMTP id 4fb4d7f45d1cf-575ff379c47mr5861928a12.15.1716236317303; Mon, 20 May 2024 13:18:37 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 20 May 2024 20:18:37 +0000 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <87plui421d.fsf@HIDDEN> References: <87plui421d.fsf@HIDDEN> MIME-Version: 1.0 Date: Mon, 20 May 2024 20:18:37 +0000 Message-ID: <CADwFkm=ymR0SQ4umA0LYmFfkc76Gtn_NwXuSw9G-+Rzefgthog@HIDDEN> Subject: Re: bug#70507: 30.0.50; eshell: grep -H and -n flags are hardcoded and the latter cannot be overwritten To: Jose A Ortega Ruiz <jao@HIDDEN>, 70507 <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70507 Cc: Jim Porter <jporterbugs@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Jose A Ortega Ruiz <jao@HIDDEN> writes: > Hi, > > I've noticed that -Hn flags are hardcoded when calling eshell's grep > command. Specially in pipes, where -H prints a noisy (standard input) > prefix for every line, those flags are rarely what I personally want, > and I'd like to have the option to disable them. For -H i can add -h to > the call, or even redefine eshell/grep to not use -H, but there's no > flag to disable -n. > > Thanks! Jim, any comments on the above bug report? Thanks.
bug-gnu-emacs@HIDDEN
:bug#70507
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 22 Apr 2024 01:31:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 21 21:31:00 2024 Received: from localhost ([127.0.0.1]:45290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ryiWH-0003T7-RP for submit <at> debbugs.gnu.org; Sun, 21 Apr 2024 21:31:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jao@HIDDEN>) id 1ryiWB-0003RS-TO for submit <at> debbugs.gnu.org; Sun, 21 Apr 2024 21:30:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jao@HIDDEN>) id 1ryiVn-0004FT-3A for bug-gnu-emacs@HIDDEN; Sun, 21 Apr 2024 21:30:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jao@HIDDEN>) id 1ryiVm-0005dC-Rz for bug-gnu-emacs@HIDDEN; Sun, 21 Apr 2024 21:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=8yQqSPZIr7zocQBl+RbpAbjooakpAzncFDkiuK/hIT8=; b=gccS0oKvbe+qu/ UilQxYq5DmGd1pa+11/3GtavX708c7kY9LMs0tS3IJPK+q1QO6sokiI2och6kkk3Ci4I137Hx8uQv d5CMzrp9fb40etC5mCW5VkQkZyOnSw+Fz7IPg0x60RohjM7oEnm1NmwQs6k2VgNa+oWcWgB8kFS3e oyggwPL44zp8MMEStLGapC4e9NmDcTIRluVYm2qwlvnga1s7zmg+Fak9leXBfa/kmIJwPVBdXHe2D TqyXq7Bwc6mjZV7elR6zObeUN89I0T28wuhJYSBnUT6xgCyEBV8gt+jjyoLfeAMXyf3gO8UTsx4m+ jmhJb2ju9fRY54+bifEQ==; From: Jose A Ortega Ruiz <jao@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 30.0.50; eshell: grep -H and -n flags are hardcoded and the latter cannot be overwritten X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: <https://jao.io/> X-Debbugs-Cc: Date: Mon, 22 Apr 2024 02:30:22 +0100 Message-ID: <87plui421d.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi, I've noticed that -Hn flags are hardcoded when calling eshell's grep command. Specially in pipes, where -H prints a noisy (standard input) prefix for every line, those flags are rarely what I personally want, and I'd like to have the option to disable them. For -H i can add -h to the call, or even redefine eshell/grep to not use -H, but there's no flag to disable -n. Thanks! In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.18.0) of 2024-04-10 built on osgiliath Repository revision: dd6b9c9426c5d7dde66974c5790815c3520a755b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure --prefix /usr/local/stow/emacs30jit --with-x-toolkit=no --with-native-compilation --with-imagemagick' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG LCMS2 LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: TeX-PDF-mode: t eat-eshell-visual-command-mode: t eat-eshell-mode: t global-git-commit-mode: t magit-auto-revert-mode: t circe-lagmon-mode: t paredit-mode: t whitespace-mode: t display-fill-column-indicator-mode: t symbol-overlay-mode: t telega-root-auto-fill-mode: t telega-active-video-chats-mode: t telega-active-locations-mode: t telega-patrons-mode: t telega-mode-line-mode: t telega-active-stories-mode: t jao-outline-minor-mode: t outline-minor-faces-mode: t global-diff-hl-mode: t diff-hl-mode: t eshell-syntax-highlighting-global-mode: t winner-mode: t global-auto-revert-mode: t vertico-multiform-mode: t vertico-mode: t marginalia-mode: t persistent-scratch-autosave-mode: t ednc-mode: t tracking-mode: t outline-minor-mode: t jao-minibuffer-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t repeat-mode: t server-mode: t savehist-mode: t recentf-mode: t save-place-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t buffer-read-only: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/jao/lib/elisp/notmuch/notmuch-compat hides /usr/local/share/emacs/site-lisp/notmuch-compat /home/jao/lib/elisp/notmuch/notmuch hides /usr/local/share/emacs/site-lisp/notmuch /home/jao/lib/elisp/notmuch/notmuch-tree hides /usr/local/share/emacs/site-lisp/notmuch-tree /home/jao/lib/elisp/notmuch/notmuch-lib hides /usr/local/share/emacs/site-lisp/notmuch-lib /home/jao/lib/elisp/notmuch/notmuch-message hides /usr/local/share/emacs/site-lisp/notmuch-message /home/jao/lib/elisp/notmuch/notmuch-address hides /usr/local/share/emacs/site-lisp/notmuch-address /home/jao/lib/elisp/notmuch/notmuch-show hides /usr/local/share/emacs/site-lisp/notmuch-show /home/jao/lib/elisp/notmuch/notmuch-wash hides /usr/local/share/emacs/site-lisp/notmuch-wash /home/jao/lib/elisp/notmuch/notmuch-print hides /usr/local/share/emacs/site-lisp/notmuch-print /home/jao/lib/elisp/notmuch/notmuch-company hides /usr/local/share/emacs/site-lisp/notmuch-company /home/jao/lib/elisp/notmuch/notmuch-hello hides /usr/local/share/emacs/site-lisp/notmuch-hello /home/jao/lib/elisp/notmuch/notmuch-parser hides /usr/local/share/emacs/site-lisp/notmuch-parser /home/jao/lib/elisp/notmuch/coolj hides /usr/local/share/emacs/site-lisp/coolj /home/jao/lib/elisp/notmuch/notmuch-jump hides /usr/local/share/emacs/site-lisp/notmuch-jump /home/jao/lib/elisp/notmuch/notmuch-maildir-fcc hides /usr/local/share/emacs/site-lisp/notmuch-maildir-fcc /home/jao/lib/elisp/notmuch/notmuch-tag hides /usr/local/share/emacs/site-lisp/notmuch-tag /home/jao/lib/elisp/notmuch/notmuch-version hides /usr/local/share/emacs/site-lisp/notmuch-version /home/jao/lib/elisp/notmuch/notmuch-mua hides /usr/local/share/emacs/site-lisp/notmuch-mua /home/jao/lib/elisp/notmuch/notmuch-crypto hides /usr/local/share/emacs/site-lisp/notmuch-crypto /home/jao/lib/elisp/notmuch/notmuch-draft hides /usr/local/share/emacs/site-lisp/notmuch-draft /home/jao/lib/elisp/notmuch/notmuch-query hides /usr/local/share/emacs/site-lisp/notmuch-query /home/jao/.emacs.d/elpa.30/transient-20240421.1327/transient hides /usr/local/stow/emacs30jit/share/emacs/30.0.50/lisp/transient /home/jao/etc/emacs/site/custom hides /usr/local/stow/emacs30jit/share/emacs/30.0.50/lisp/custom Features: (shadow emacsql-sqlite-builtin tmm haskell-doc inf-haskell haskell-decl-scan hlint-refactor flymake-hlint flymake-easy dictionary external-completion dictionary-connection texinfo texinfo-loaddefs toolbar-x reporter desktop frameset context plain-tex latex latex-flymake tex-ispell tex-style tex texmathp cider-scratch cider-macroexpansion cider tramp-sh cider-debug cider-browse-ns cider-mode cider-xref-backend cider-find cider-inspector cider-completion cider-profile cider-eval cider-jar cider-repl-history cider-repl cider-resolve cider-test cider-overlays cider-stacktrace cider-doc cider-browse-spec cider-clojuredocs cider-eldoc cider-docstring cider-client cider-common cider-completion-context cider-connection cider-popup sesman-browser nrepl-client cider-util sesman queue spinner parseedn parseclj-parser parseclj-lex parseclj-alist clojure-mode nrepl-dict embark-vc forge-list forge-commands forge-semi forge-bitbucket forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml forge-post markdown-toc markdown-mode forge-repo forge forge-core forge-db closql emacsql-sqlite-common emacsql emacsql-compiler eieio-base buck ghub-graphql treepy gsexp ghub ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util slack slack-company slack-unread slack-websocket slack-dialog-edit-element-buffer slack-search-result-buffer slack-thread-message-compose-buffer slack-file-list-buffer slack-all-threads-buffer slack-room-info-buffer slack-thread-event slack-room-event slack-star-event slack-reaction-event slack-reply-event slack-stars-buffer slack-typing slack-search slack-file-info-buffer slack-dialog-buffer slack-dialog slack-slash-commands slack-message-event slack-event slack-message-buffer slack-user-profile-buffer slack-pinned-items-buffer slack-pinned-item slack-thread-message-buffer slack-room-buffer slack-star slack-reminder slack-message-share-buffer slack-message-edit-buffer slack-room-message-compose-buffer slack-message-compose-buffer slack-message-attachment-preview-buffer slack-message-editor slack-message-sender slack-action slack-message-notification slack-message-reaction slack-buffer slack-message-formatter slack-thread slack-im slack-channel slack-group slack-conversations slack-create-message slack-attachment slack-selectable slack-bot-message slack-file slack-modeline slack-user-message slack-message slack-message-faces slack-unescape slack-block slack-mrkdwn slack-usergroup slack-reaction slack-room slack-counts slack-user slack-bot slack-dnd-status slack-emoji slack-image slack-request slack-log slack-team slack-team-ws slack-util slack-autoloads ert cl websocket tls websocket-autoloads apropos emojify-autoloads package-vc qp ecomplete sort mailalias bbdb-message mail-extr yaml-mode tabify benchmark sh-script cus-start cl-print debug backtrace tramp-cache time-stamp password-store auth-source-pass macros pulse goto-chg app-launcher gnus-dired org-cliplink org-cliplink-transport org-cliplink-string consult-imenu quail display-line-numbers pcmpl-unix bash-completion eat term/xterm xterm em-unix em-script em-pred em-ls em-hist em-glob em-extpipe em-cmpl em-basic em-banner misearch multi-isearch shortdoc mastodon-notifications vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs bug-reference magit-extras magit-bookmark magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit log-edit add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor magit-mode magit-git magit-base magit-section face-remap org-agenda image-file image-converter oc-basic bibtex cal-iso cal-move shr-color vertico-directory tramp-cmds mule-util mastodon-media textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check mastodon-profile circe-lagmon lui-track circe-display-images circe lui-irc-colors irc lcs lui-logging lui-format lui flyspell ispell circe-compat mastodon-tl mastodon-auth mastodon-client plstore time jao-custom-exwm exwm-systemtray xcb-systemtray xcb-xembed exwm-edit exwm exwm-input xcb-keysyms xcb-xkb exwm-manage exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types xcb-debug executable copyright paredit whitespace display-fill-column-indicator symbol-overlay bigml bml-logs bml bml-misc bml-whizzml bml-clojure bml-clj-tests bml-python bml-skels bml-utils multisession sqlite whizzml-skeletons whizzml-mode sieve sieve-mode sieve-manage sasl sasl-anonymous sasl-login sasl-plain xmobar xclip jao-wayland jao-spt consult-spotify espotify jao-mpc jao-random-album jao-lyrics jao-mpris mastodon mastodon-search mastodon-toot facemenu mastodon-iso mastodon-http telega-obsolete telega telega-tdlib-events telega-webpage telega-match telega-root telega-info telega-chat visual-fill-column telega-modes telega-company telega-emoji telega-user telega-notifications telega-voip telega-msg telega-story telega-tme telega-sticker telega-vvnote bindat telega-ffplay telega-i18n telega-sort telega-filter telega-ins telega-inline telega-util telega-folders telega-topic telega-media telega-tdlib rainbow-identifiers dired-aux color telega-server telega-core cursor-sensor telega-customize emacsbug jao-mullvad bluetooth json-mode smie virtualenvwrapper gud s pie haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-navigate-imports haskell-repl haskell-svg haskell-collapse hideshow haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-compile haskell-process haskell-session haskell-hoogle consult-hoogle hoogle-base align geiser-chez geiser-guile tramp trampver tramp-integration tramp-message tramp-compat parse-time iso8601 tramp-loaddefs info-look geiser-debug geiser-repl geiser-image geiser-capf geiser-doc geiser-menu geiser-autodoc geiser-edit geiser-completion geiser-eval geiser-connection tq geiser-syntax scheme geiser-impl help-fns geiser-log geiser-popup view geiser-custom geiser-base geiser package-lint let-alist finder edit-list outline-minor-faces git-modes gitignore-mode gitconfig-mode conf-mode gitattributes-mode git-link git-timemachine diff-hl log-view pcvs-util vc-dir ewoc vc jao-eshell-here eshell-autojump em-dirs eshell-up git-ps1-mode em-term term disp-table ehelp eshell-syntax-highlighting em-prompt em-alias jao-custom-email jao-custom-notmuch consult-notmuch org-capture jao-notmuch link-hint avy notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj goto-addr icalendar notmuch-tag notmuch-lib notmuch-version notmuch-compat hl-line mm-view mml-smime smime dig bbdb-anniv bbdb-com crm bbdb bbdb-site timezone randomsig jao-proton-utils nov imenu esxml-query saveplace-pdf-view jao-custom-eww ol-eww jao-eww-session eww url-queue shr pixel-fill kinsoku url-file svg mm-url gnus nnheader range edit-indirect reverso dom request jao-custom-blog htmlize jao-custom-org jao-org-links jao-doc-view jao-pdf doc-view image-mode exif ol-info ol-eshell esh-mode esh-var eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util files-x jao-org-notes ob-shell shell ob-scheme ob-python python treesit ob-org ob-ocaml ob-makefile ob-haskell ob-gnuplot ob-clojure ob-calc calc-store calc-trail calc-ext calc calc-loaddefs rect calc-macs org-tempo tempo ox-pandoc ht dash ox-org ox-texinfo ox-latex ox-html table ox-ascii ox-publish ox org-fragtog embark-org org-element org-persist xdg org-id org-refile avl-tree org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func org-version org-compat org-macs advice winner autorevert filenotify consult-recoll embark-consult consult bookmark jao-custom-completion embark ffap vertico-multiform vertico marginalia orderless jao-skel-latex jao-skel-haskell haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme haskell-align-imports haskell-complete-module haskell-ghc-support flymake-proc flymake thingatpt etags fileloop generator xref project dabbrev haskell-customize jao-compilation jao-skel-lisp jao-skel-geiser jao-skel skeleton autoinsert wgrep grep jka-compr dired-duplicates dired-x persistent-scratch cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays holiday-loaddefs vc-git diff-mode vc-dispatcher appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs jao-ednc ednc jao-tracking jao-afio jao-doc-session tracking shorten jao-notify alert log4e notifications gntp alert-autoloads gntp-autoloads compile comint ansi-osc ring log4e-autoloads loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode archive-mode mm-archive message sendmail yank-media dired dired-loaddefs rfc822 mml mml-sec gnus-util text-property-search time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny battery noutline outline diminish jao-mode-line comp comp-cstr warnings comp-run comp-common rx jao-minibuffer minibuf-eldef mb-depth man jao-light-theme jao-themes ansi-color epa-file epa derived epg rfc6068 epg-config transient format-spec compat repeat jao-shell edmacro kmacro jao-sleep dbus xml server savehist recentf tree-widget saveplace persist cus-edit pp cus-load wid-edit jao-gnus-private gnu-elpa-keyring-update cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf auctex-autoloads tex-site bash-completion-autoloads bbdb-autoloads bluetooth-autoloads cider-autoloads circe-autoloads clojure-mode-autoloads consult-git-log-grep-autoloads consult-hoogle-autoloads diff-hl-autoloads diminish-autoloads dired-duplicates-autoloads eat-autoloads edit-indirect-autoloads edit-list-autoloads ednc-autoloads embark-consult-autoloads consult-autoloads embark-vc-autoloads embark-autoloads eshell-autojump-autoloads eshell-syntax-highlighting-autoloads eshell-up-autoloads exwm-autoloads exwm-edit-autoloads flymake-hlint-autoloads flymake-easy-autoloads forge-autoloads closql-autoloads emacsql-autoloads ghub-autoloads git-link-autoloads git-modes-autoloads git-ps1-mode-autoloads git-timemachine-autoloads gnu-elpa-keyring-update-autoloads goto-chg-autoloads haskell-mode-autoloads hlint-refactor-autoloads htmlize-autoloads jenkins-autoloads json-mode-autoloads link-hint-autoloads avy-autoloads magit-autoloads pcase git-commit-autoloads magit-section-autoloads marginalia-autoloads markdown-toc-autoloads markdown-mode-autoloads mastodon-autoloads nov-autoloads esxml-autoloads kv-autoloads orderless-autoloads org-cliplink-autoloads org-fragtog-autoloads org-static-blog-autoloads outline-minor-faces-autoloads ox-pandoc-autoloads ht-autoloads package-lint-autoloads paredit-autoloads parseedn-autoloads parseclj-autoloads password-store-autoloads persist-autoloads persistent-scratch-autoloads queue-autoloads reverso-autoloads request-autoloads saveplace-pdf-view-autoloads sesman-autoloads spinner-autoloads symbol-overlay-autoloads telega-autoloads rainbow-identifiers-autoloads transient-autoloads treepy-autoloads vertico-autoloads virtualenvwrapper-autoloads s-autoloads dash-autoloads visual-fill-column-autoloads wgrep-autoloads info with-editor-autoloads xclip-autoloads xelb-autoloads yaml-autoloads yaml-mode-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 7446884 1304663) (symbols 48 147697 287) (strings 32 1011999 111534) (string-bytes 1 106814715) (vectors 16 363473) (vector-slots 8 6352574 537834) (floats 8 302078 71273) (intervals 56 290975 39561) (buffers 992 321)) -- Ignorance more frequently begets confidence than does knowledge - Charles Darwin
Jose A Ortega Ruiz <jao@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#70507
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.