From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41821: 28.0.50; read-directory-name in vc commands should provide defaults from projects Date: Fri, 3 Jul 2020 16:05:56 +0000 (UTC) Message-ID: References: <<87r1ulxk48.fsf@mail.linkov.net>> <> <<87366ohw5z.fsf@mail.linkov.net>> <> <<878sge7jls.fsf@mail.linkov.net>> <<7e136435-7123-fa42-e4a8-66b82e6595da@yandex.ru>> <<87pn9pxris.fsf@mail.linkov.net>> <<83d05ottnw.fsf@gnu.org>> <<0b42f540-f779-446b-4411-8dae3a50d09d@yandex.ru>> <<837dvwtrv1.fsf@gnu.org>> <<835zbgtqps.fsf@gnu.org>> <<625de669-0715-1467-0bd1-84328b4bee5f@yandex.ru>> <<83wo3ws4g8.fsf@gnu.org>> <> <<83tuyzs2np.fsf@gnu.org>> <<87h7uuj1v3.fsf@mail.linkov.net>> <> <<87h7utjx75.fsf@mail.linkov.net>> <<3f9e85ba-66a9-abd0-61bf-800ea8bb4ee3@yandex.ru>> <<87eepw5nlt.fsf@mail.linkov.net>> <> <<83v9j7xpoj.fsf@gnu.org>> <<990a9046-c4e6-efb2-01dd-60198994127b@yandex.ru>> <<831rluxcll.fsf@gnu.org>> <> <<83r1ttx196.fsf@gnu.org>> <<9c09977f-18c2-facd-c1e2-e7fe488ee92c@yandex.ru>> <<83eeptw3a9.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41821@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii , Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 03 18:23:26 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrOTF-0001md-Sp for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jul 2020 18:23:25 +0200 Original-Received: from localhost ([::1]:54180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrOTE-0005Mj-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jul 2020 12:23:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrODO-0001HT-QH for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2020 12:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrODO-0001ML-E0 for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2020 12:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jrODO-0001HR-6a for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2020 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jul 2020 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 41821-submit@debbugs.gnu.org id=B41821.15937923754862 (code B ref 41821); Fri, 03 Jul 2020 16:07:02 +0000 Original-Received: (at 41821) by debbugs.gnu.org; 3 Jul 2020 16:06:15 +0000 Original-Received: from localhost ([127.0.0.1]:57402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrOCc-0001GL-4M for submit@debbugs.gnu.org; Fri, 03 Jul 2020 12:06:15 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:49222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jrOCX-0001Fy-Dv for 41821@debbugs.gnu.org; Fri, 03 Jul 2020 12:06:13 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 063G2POq144208; Fri, 3 Jul 2020 16:06:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=dvw9Ptjkpz8aLfjJ8zgnNj1135D2s7nRMX0qBkQrjxA=; b=LfOFuX5cBi8bjbNDlDgfyy4LNXMvx3ZJgOGYK/1EERsmih5i+zssQVYihPTBtvEH5pvL UC0t7XR+Cl58cuqIYI0iuvX3V5pOj3eqWfDC/kQIeGGpMTzZNq1F2KTiziwiMgD13aat DccsnIBzXNRHILEPlz0ws4WaKAIOx7miI15wdE1QSacbYCr+wYRtIrnByVynbQGBJpdT bjRLNk1MSWaEwEaAwQMTUf3Co7gPCX+vwXb4H93nM3V/0MMsgbviwl8F31GyvoJGu5c+ ORReKnoNXz0irQ069mAJNqk2ifYkl6Z8nKrRP5AIZJooqPQG/yaaRuhj5VOvfBE4w0E3 cg== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 31xx1eb6uh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 03 Jul 2020 16:06:03 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 063G3w3G074004; Fri, 3 Jul 2020 16:06:03 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 31xg22vys1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Jul 2020 16:06:02 +0000 Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 063G5vkE004417; Fri, 3 Jul 2020 16:05:57 GMT In-Reply-To: <<83eeptw3a9.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5017.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9671 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007030109 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9671 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1011 adultscore=0 suspectscore=1 mlxlogscore=999 cotscore=-2147483648 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 mlxscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007030109 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182666 Archived-At: > > But it's for a default value (one you can insert using M-n, or not). > > Most users won't even notice this. >=20 > You assume that most users don't know about or use M-n? I do it all > the time, and would like to think others do as well. OT - Dunno about "most", but I suspect "many", yes. `M-n' is super-useful, and I'm guessing that many users, ignorant of it, fairly often go to the trouble of typing what's in fact the default value. Dunno what might be a good solution to this lack of discovery. I've taken one approach that I hope helps a bit, but it too suffers from discoverability. Pretty much anything that doesn't, by default, put the default value in the minibuffer suffers from some difficulty of discovery. What I do in Icicles is this, FWIW (again, not a panacea): When option `icicle-default-value' is non-nil (it's nil by default, hence a discovery problem still), and the INITIAL-INPUT arg of minibuffer-reading functions is nil or "", the DEFAULT-VALUE arg can be inserted in the minibuffer as input. (You can clear the minibuffer anytime with `M-k'.) Particular non-nil values determine placement of point wrt the inserted value, and whether the value is automatically selected (useful with `delete-selection-mode'). https://www.emacswiki.org/emacs/Icicles_-_Customization_and_General_Tips#ic= icle-default-value I mention this because I think that `M-n' is likely underused because of ignorance. Other ways to make it known could help. Inserting it automatically is not necessarily the best way. We could, say, until you do something to remove the nag, append something to minibuffer prompts, to point out `M-n'. Or we could provide a help key that shows *Help* with info about `M-n', `M-p', etc. Dunno what might help new users the most without bothering others.