unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: "Florian v. Savigny" <florian@fsavigny.de>, help-gnu-emacs@gnu.org
Subject: RE: Diagnosing a curious minibuffer problem (proliferating,	weird initial contents)
Date: Tue, 20 Jan 2015 09:49:26 -0800 (PST)	[thread overview]
Message-ID: <eff2a872-3fb2-4edc-a27b-9cb3e22a16ef@default> (raw)
In-Reply-To: <<87r3uptmbj.fsf@bertrandrussell.Speedport_W_723V_1_36_000>>

> - After a while (and I cannot specify it more exactly; the moment when
>   it starts seems unpredictable), commands which use completing-read
>   (even M-x, but also functions which I have written myself) start to
>   have inappropriate stuff as initial content. As far as I can
>   remember, this inappropriate stuff is all file names.
> 
> - If this goes on longer, more inappropriate stuff is appended to the
>   initial content, i.e. after a while, e.g. M-x offers you a long
>   string of concatenated file names. You can either choose to delete
>   this long monster, or you can get rid of it by typing M-p, which
>   gives you shorter minibuffer contents.
> 
> Can anybody give me any advice on how to pinpoint, isolate, reproduce,
> provoke this problem? I would be awfully grateful, because my "Emacs
> system" is complex and I need to run it every day.

First of all, check what happens without your init file: `emacs -Q'.
If you see the same problem, try to note a recipe to reproduce it and
file a bug report, giving that recipe: `M-x report-emacs-bug'.

If you do not see the problem with `emacs -Q' then recursively bisect
your init file to find the culprit code.  You can use command
`comment-region' to comment out 1/2 of it, then 3/4, then 7/8, 15/16, etc.
You can use `C-u' with `comment-region' to uncomment the region.

This is a *binary search*, so it is very quick.  It is the way to proceed
always, but *especially* if your "Emacs system is complex".  Do not
try to debug a giant sac of stuff - break it down systematically.

If you have a question after finding the culprit code/setting, post it here.



       reply	other threads:[~2015-01-20 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<87r3uptmbj.fsf@bertrandrussell.Speedport_W_723V_1_36_000>
2015-01-20 17:49 ` Drew Adams [this message]
2015-01-20 17:05 Diagnosing a curious minibuffer problem (proliferating, weird initial contents) Florian v. Savigny
2015-01-21  4:26 ` Michael Heerdegen
2015-01-21  8:31   ` Marcin Borkowski

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=eff2a872-3fb2-4edc-a27b-9cb3e22a16ef@default \
    --to=drew.adams@oracle.com \
    --cc=florian@fsavigny.de \
    --cc=help-gnu-emacs@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.
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).