From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: It's almost 2016 and when (single-threaded) Emacs hangs, you gotta be smashing your keyboard! Date: Thu, 19 Nov 2015 21:29:04 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1447964960 16490 80.91.229.3 (19 Nov 2015 20:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 20:29:20 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 21:29:20 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 1ZzVpW-0005Ps-PC for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 21:29:18 +0100 Original-Received: from localhost ([::1]:43892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzVpW-0001iw-5K for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 15:29:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzVpL-0001ip-DS for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 15:29:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzVpK-0007Vs-De for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 15:29:07 -0500 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzVpK-0007Uz-6b for help-gnu-emacs@gnu.org; Thu, 19 Nov 2015 15:29:06 -0500 Original-Received: by lffu14 with SMTP id u14so56195274lff.1 for ; Thu, 19 Nov 2015 12:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1e/AUppM61Pmg7g4yh8jFuk/7u2CceKpAW8u9zJD6v0=; b=UzR/7ewqbZ3aplPiwHUb/doC7d7ZieJdC8VyoQIr7DcAmnoAXTd09ewz/hfmdh98/s sMJS0A0JZF8jiBtQEH23qI8Bgd58wZFFaorn+H0moyLTWO6gUVdOiMpHHyfCCzUPDoHU COVrw6otYAemT7XzroY1gM43KBT3y10N98SY3oLbAqYtn90i54kRy5JyBXrWVNArXaqT mj1Z3uomBEqs4Sa+qIrIZPG9+Sdglc1/ZiO3qR6KGMXfSmN04K28JETSH+hc1s+aWtFN BYRo8EOmyRFz15r0owR3JtNovE73uz6Du15XcZXiSB4VZ/clNQx+U6V6RlDEa8EVK2P+ BUQw== X-Received: by 10.25.39.135 with SMTP id n129mr3773703lfn.60.1447964945022; Thu, 19 Nov 2015 12:29:05 -0800 (PST) Original-Received: by 10.112.135.70 with HTTP; Thu, 19 Nov 2015 12:29:04 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::236 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:108141 Archived-At: Hello, This discussion might be with some rant flavor, and I apologize for that beforehand. Currently, I have to work with directories mounted from network. As a result, Dired either opens them slowly or hangs forever (looks like a bug and/or glitch). I personally find this very frustrating, especially when I'm in the middle of work with 50+ buffers open (some of which are still in modified state). The only way to recover from such problems is to kill the Emacs process. I've read numerous times on these mailing lists that nobody is really willing to introduce multi-threading due to historical reasons, and that Emacs is an inherently single-threaded environment which is not designed to support multi-threading, and bla bla bla... On the one hand, I can understand all the above as a rationale. On the other hand, in 2015, it sounds like an amateur excuse. I mean, seriously, how can so advanced text editor with ~30 year history be so unreliable and fragile to work with in randomly occurring cases? It may freeze or it may not freeze, but if it does, all of the unsaved work is lost, not to mention the fact that all of the layout of windows and open buffers are lost as well. It's literally UNACCEPTABLE. Now, I'm not here to teach Emacs developers what to do or annoy anybody. First of all, I just want to once again draw your attention to one of the urgent issues (to this date) of Emacs. And, secondly, I want to ask whether there exists a way to solve the problem described above without multi-threading? For instance, I believe I saw something like `defer' package. My question is: how can I (perhaps) advise Dired functions (at least for opening directories), so that they execute asynchronously (at least for interactive use, for example)? Currently, I know only one way to avoid this: run another instance of Emacs which is dedicated exclusively for browsing with Dired, and that's still kinda lame and limited (as you can't really open files into another instance of Emacs, where you do your real work). Thanks and regards, Alexander