From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: find-grep-dired - default directory to start with Date: Tue, 28 Jul 2015 17:30:32 +0300 Message-ID: <55B79208.9090508@yandex.ru> References: <55B774B6.4090901@senfdax.de> <55B7790B.1090208@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438093905 7103 80.91.229.3 (28 Jul 2015 14:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 14:31:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bobby Casey Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 28 16:31:35 2015 Return-path: Envelope-to: geh-help-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 1ZK5up-0003bx-3Z for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jul 2015 16:31:35 +0200 Original-Received: from localhost ([::1]:58923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5uo-00047X-Hj for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jul 2015 10:31:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5ue-00046P-Ix for help-gnu-emacs@gnu.org; Tue, 28 Jul 2015 10:31:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK5ua-000808-8O for help-gnu-emacs@gnu.org; Tue, 28 Jul 2015 10:31:24 -0400 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:38798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5ua-0007zR-2I for help-gnu-emacs@gnu.org; Tue, 28 Jul 2015 10:31:20 -0400 Original-Received: by wibxm9 with SMTP id xm9so163637528wib.1 for ; Tue, 28 Jul 2015 07:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=nguSJlIoSK1m78vojYJjNXsCEQfgSH+emnn82vzcQsk=; b=h/MfYl88cuMEjtcueF+tJ77z0TKPDYCXGogPSsD6vV6e0tOxlrqAzk5dr3Zxxkn5LE vXvLkalFQ9w5d7DY2uSRDfGhN1VZLg9quXxaj0cWRIeR0llGnSHTjDnv0mRvlTBxkfAY PclH3KYv+nqqXPGWGnhNcw7BQma0UL04YNVkzG/BwQp4HbJ7sAFAmCgt7F5cz4FLVujQ Glc5FJRcw9xSJSAygGCPuIFJFqsEjCqkJvbb99qQZweRtrzOUCfkcSyL8Ua5KYSgGrl9 IEYlWmu5dyCU0JzdNSzfrID6CQJaI5Q4Ah+EZlCxLTbgmA7CqZDQ3r3+DqbHvF47h98d omJQ== X-Received: by 10.180.188.137 with SMTP id ga9mr4423126wic.11.1438093834417; Tue, 28 Jul 2015 07:30:34 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id lm16sm17908818wic.18.2015.07.28.07.30.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 07:30:33 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106069 Archived-At: On 07/28/2015 05:27 PM, Bobby Casey wrote: > Wouldn't a wrapper be more appropriate? Something like this: > > (defvar my-find-grep-dired-default "/tmp/" > "Specifies the default search directory for my-find-grep-dired") > (defun my-find-grep-dired (regexp) > (find-grep-dired my-find-grep-dired-default regexp)) Yep, that looks fine as well.