From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: feature proposal: occur-read-primary-args: (from Xemacs) Date: Thu, 31 Dec 2015 10:50:34 -0800 (PST) Message-ID: References: <87lh8fkfmc.fsf@mat.ucm.es> <87twmzfow4.fsf@mail.linkov.net> <83poxnb89u.fsf@gnu.org> <878u4ava0b.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451587870 23832 80.91.229.3 (31 Dec 2015 18:51:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 18:51:10 +0000 (UTC) To: Uwe Brauer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 31 19:50:55 2015 Return-path: Envelope-to: ged-emacs-devel@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 1aEiJK-0003aH-N2 for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2015 19:50:54 +0100 Original-Received: from localhost ([::1]:56556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEiJK-0007ni-5C for ged-emacs-devel@m.gmane.org; Thu, 31 Dec 2015 13:50:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEiJ7-0007nS-I0 for emacs-devel@gnu.org; Thu, 31 Dec 2015 13:50:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEiJ4-0001UD-6p for emacs-devel@gnu.org; Thu, 31 Dec 2015 13:50:41 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:24470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEiJ3-0001TT-UH for emacs-devel@gnu.org; Thu, 31 Dec 2015 13:50:38 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tBVIoaTM012432 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 31 Dec 2015 18:50:36 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id tBVIoaLi030508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 31 Dec 2015 18:50:36 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id tBVIoaee014735; Thu, 31 Dec 2015 18:50:36 GMT In-Reply-To: <878u4ava0b.fsf@mat.ucm.es> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197280 Archived-At: > > I actually wonder whether Uwe knows about a much simpler to use > > feature: type M-n or arrow at the Occur prompt. >=20 > No I did not, but your solution is hitting one key more :-D That's because Emacs does not insert the default value into the minibuffer as an "initial value". For one thing, since Emacs 23 there can be multiple default values, which you can retrieve, one by one, using `M-n' repeatedly. --- [If you use Icicles then you can opt to have Emacs automatically insert the (first) default value in the minibuffer, so you do not need to use `M-n' to retrieve it. (In that case, if you do not want it you can hit `M-k' to remove it.) You choose the behavior you want by customizing option `icicle-default-value'. You can choose to insert the default value or not; and if inserted, whether to leave the cursor before or after it, and whether to preselect it.]