all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Francesc Rocher <francesc.rocher@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Juri Linkov <juri@jurta.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Ignoring entries starting with space
Date: Fri, 26 Jun 2009 20:25:12 +0200	[thread overview]
Message-ID: <ade856a30906261125n6980211ew3f59a4ad11418c19@mail.gmail.com> (raw)
In-Reply-To: <e01d8a50906251603q1e390e81l5b7541d3cbc0d26d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1864 bytes --]

On Fri, Jun 26, 2009 at 1:03 AM, Lennart Borgman
<lennart.borgman@gmail.com>wrote:

> On Fri, Jun 26, 2009 at 12:57 AM, Stefan
> Monnier<monnier@iro.umontreal.ca> wrote:
> >> So maybe a configurable key like C-RET, M-RET or S-RET could exit the
> >> minibuffer without adding the minibuffer contents to the history
> >> as an alternative to the leading space if typing a space character
> >> poses a problem with completion or with file names.
>

I agree that this solution is much better than the initial one "discarding
by space".
I would start to implement this one.


> > That would inded make more sense to me.  Maybe even a separate command
> > that wouldn't exit but just set a local var that would then cause the
> > next exit to refrain from recording the data in the history (that
> > command could even instead just provide a way to switch to some other
> > history var, so you could throw stuff away by selecting a dummy history
> > var, but you could also choose some other history var if you so wanted).
>


> And that command could also be a toggle which informed the user about
> the state (ie that the input would not (or would) be saved in the
> history list).
>

I think all this could be done by a combination between toggling the status
of
the `history-add-new-input' variable and a mode-line indicator (or a
different
face or background for the strings written in the minibuffer).

To switch the history variable while you are typing at the minibuffer seems
more
complex and confusing, because this could have conflicts with the variable
from
which you can currently recall previous commands or text.


By the way, several years ago I wrote `minued', a minibuffer history editor
for JED
http://jedmodes.sourceforge.net/mode/minued/
Is there something similar for Emacs?
Do you think it would be worth having it for Emacs?

-- Francesc Rocher

[-- Attachment #2: Type: text/html, Size: 2800 bytes --]

  reply	other threads:[~2009-06-26 18:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 21:20 Ignoring entries starting with space Francesc Rocher
2009-06-21 23:00 ` Juri Linkov
2009-06-24 21:21 ` Stefan Monnier
2009-06-24 22:08   ` Juri Linkov
2009-06-25  7:58     ` Francesc Rocher
2009-06-25 12:44       ` Stefan Monnier
2009-06-25 20:45         ` Juri Linkov
2009-06-25 22:57           ` Stefan Monnier
2009-06-25 23:03             ` Lennart Borgman
2009-06-26 18:25               ` Francesc Rocher [this message]
2009-06-26 19:02                 ` Drew Adams
2009-06-26 22:54                 ` Juri Linkov
2009-06-26 23:42                 ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ade856a30906261125n6980211ew3f59a4ad11418c19@mail.gmail.com \
    --to=francesc.rocher@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=lennart.borgman@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.