From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#21528: 25.0.50; gud tries to guess what file we're debugging, which can take a long time Date: Sun, 20 Sep 2015 19:50:21 -0700 Message-ID: <87r3ls8p02.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442803884 781 80.91.229.3 (21 Sep 2015 02:51:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 02:51:24 +0000 (UTC) To: 21528@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 21 04:51:11 2015 Return-path: Envelope-to: geb-bug-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 1ZdrCA-00067u-V8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Sep 2015 04:51:11 +0200 Original-Received: from localhost ([::1]:55096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrCA-0000VN-BH for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Sep 2015 22:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrC6-0000VC-Sk for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdrC2-0000Mn-Rq for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrC2-0000MU-Nw for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZdrC2-0003c0-KK for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2015 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144280383713843 (code B ref -1); Mon, 21 Sep 2015 02:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2015 02:50:37 +0000 Original-Received: from localhost ([127.0.0.1]:39346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdrBd-0003bD-0o for submit@debbugs.gnu.org; Sun, 20 Sep 2015 22:50:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52957) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdrBZ-0003b3-EO for submit@debbugs.gnu.org; Sun, 20 Sep 2015 22:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdrBY-00006o-4D for submit@debbugs.gnu.org; Sun, 20 Sep 2015 22:50:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrBX-00006d-O2 for submit@debbugs.gnu.org; Sun, 20 Sep 2015 22:50:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrBW-0000TC-Nc for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:50:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdrBS-000055-Dj for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:50:30 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdrBS-0008WV-Am for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 22:50:26 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2B21B200F1 for ; Sun, 20 Sep 2015 22:50:23 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 20 Sep 2015 22:50:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=ja8n4tVnVbBlgI7xZ/qw4q1kctw =; b=TvwLYwlwhqgcW4S/hvSffpnnZdyRAMVtO5bVZUXgj84/YJm+Ihhf7S1wioG tsyoakZOY81uO2x7I8SH91Wl8Nm3DEyOgYxZ55GsKUAHNvSDpYjsgRtukDWm2tXg Qqr9ZA7f06S+9noXhOehx9ImFjShZV2VihYWOe0votAdCtzI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ja 8n4tVnVbBlgI7xZ/qw4q1kctw=; b=R0ER+kj6S9GfB64T7uesW0doSUwsvrpAHZ BSE8F6Z2vNDe4N2C5QqZsUvGqc9q89xuwRZd+yZnMM8p3jAioMQFh0HSELAqu/9s AlNi+yOg+I7AXP10Beq80qMAECY7ZwDDgpMXXR+X78IbvU5zg+VTlE+vGMEgVXzH f0koSXhaw= X-Sasl-enc: 3zwr2ddn5eZDT6DiNsQaZkt5mSzx3dlDQylCx5optj+4 1442803822 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id D12FEC0001A for ; Sun, 20 Sep 2015 22:50:22 -0400 (EDT) Original-Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZdrBN-0004om-OS for bug-gnu-emacs@gnu.org; Sun, 20 Sep 2015 19:50:21 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106755 Archived-At: Hi. Currently when the user invokes any gud-based mode ('M-x pdb' for instance) the minibuffer pops up with a suggested command. This command tries to guess what you're trying to debug based on some pretty arbitrary heuristics. This is in 'gud-query-cmdline' in gud.el These heuristics include looking at each file in the current directory to find the most recent executable file. In my experience this almost never is what I want. If I'm doing remote debugging with tramp and the current directory has many files in it, then emacs can sit there for a very long time before opening the minibuffer, while it looks at all the files in the remote directory. I think this delay changes this behavior from not-useful to harmful, and I think it should be removed. Thoughts?