From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Option for saving all buffers always? Date: Sat, 10 Aug 2019 22:57:55 +0200 Message-ID: <875zn4pwks.fsf@telefonica.net> References: <87r25zdgvq.fsf@mouse.gnus.org> <8e746ec8-10c7-fe05-edbf-1aba839443c4@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="226727"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 10 22:58:14 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwYRJ-000wsS-Gb for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 22:58:13 +0200 Original-Received: from localhost ([::1]:38058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwYRI-00008Q-8J for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2019 16:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54142) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwYRB-000081-1x for emacs-devel@gnu.org; Sat, 10 Aug 2019 16:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwYRA-0003x8-6Z for emacs-devel@gnu.org; Sat, 10 Aug 2019 16:58:05 -0400 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:38646 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hwYRA-0003t4-0O for emacs-devel@gnu.org; Sat, 10 Aug 2019 16:58:04 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hwYR7-000wel-4N for emacs-devel@gnu.org; Sat, 10 Aug 2019 22:58:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:2gcLDLOnwhjBAqkr/estBWOADdo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239314 Archived-At: Clément Pit-Claudel writes: > On 2019-08-05 06:51, Lars Ingebrigtsen wrote: >> (The question is >> especially annoying when compiling/grepping for stuff.) > > Patching M-x compile and M-x rgrep to only prompt about files within > the current directory or its descendants has been on my TODO-list for > a long time. +1 I actually used a patched Magit to do this, until they added the feature (or I submitted it, dunno). Actually, as it is common to have multi-level source trees and the build can be invoked from anywhere, the feature needs a method to determine the root directory. Assuming that the interesting buffers are on the current directory or its descendants is ok for rgrep, but not for compile.