From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] org-insert-link should use DEFAULT in read-string when asking for description
Date: Sat, 26 Feb 2022 15:50:29 +0700 [thread overview]
Message-ID: <svcpkn$o6s$1@ciao.gmane.io> (raw)
In-Reply-To: <87sfs7jafo.fsf@gmail.com>
On 25/02/2022 21:19, Visuwesh wrote:
>
> Currently, when asking the user for the description of link,
> `org-insert-link' calls `read-string' with a non-nil INITIAL-INPUT but
> this argument is discouraged and deprecated; moreover, it is unfriendly.
>
> `org-insert-link' should, ideally, use the DEFAULT argument. If the
> user decides that the suggested description is okay, they can type M-n.
Due to lack of experience with emacs I can miss something. If so,
please, correct me.
Are you suggesting replacing
(read-string "rs-initial: " "Some initial")
by
(read-string "rs-default: " nil nil "Some default")
? Is it possible to override provided default description by empty
string in the latter variant? Currently it is possible to erase
description using just backspace or C-S-backspace.
P.S. Many GUI applications pre-select whole value when some input field
is focused, so it is possible to overwrite current value by typing
anything. It may be convenient but is not consistent with emacs
behavior. Moreover it makes uncertain if visually selected text
overwrites X PRIMARY selection.
next prev parent reply other threads:[~2022-02-26 8:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 14:19 [BUG] org-insert-link should use DEFAULT in read-string when asking for description Visuwesh
2022-02-26 8:50 ` Max Nikulin [this message]
2022-02-26 14:16 ` Visuwesh
2022-02-27 10:48 ` Max Nikulin
2022-02-27 16:16 ` Visuwesh
2022-03-01 16:36 ` Max Nikulin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='svcpkn$o6s$1@ciao.gmane.io' \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).