From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Diagnosing a curious minibuffer problem (proliferating, weird initial contents) Date: Tue, 20 Jan 2015 09:49:26 -0800 (PST) Message-ID: References: <<87r3uptmbj.fsf@bertrandrussell.Speedport_W_723V_1_36_000>> 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 1421776198 11887 80.91.229.3 (20 Jan 2015 17:49:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2015 17:49:58 +0000 (UTC) To: "Florian v. Savigny" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 18:49:54 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YDcw3-0001EU-Kw for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 18:49:51 +0100 Original-Received: from localhost ([::1]:44993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDcw2-0007fo-V8 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 12:49:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDcvr-0007eO-6l for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 12:49:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDcvl-0002W7-QH for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 12:49:39 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDcvl-0002Vf-K0 for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 12:49:33 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0KHnSCt015093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 Jan 2015 17:49:29 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id t0KHnR2c028735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Jan 2015 17:49:28 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0KHnRo9005483; Tue, 20 Jan 2015 17:49:27 GMT In-Reply-To: <<87r3uptmbj.fsf@bertrandrussell.Speedport_W_723V_1_36_000>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102177 Archived-At: > - 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. >=20 > - 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. >=20 > 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= .