From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10996: 24.0.94; Splash screen causes first character to beep with emacsclient Date: Tue, 10 Apr 2012 13:55:16 -0400 Message-ID: References: <87wr6d2a7c.fsf@gnu.org> <87obr2jpyh.fsf@gnu.org> <87bon2uqdg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334081315 23587 80.91.229.3 (10 Apr 2012 18:08:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2012 18:08:35 +0000 (UTC) Cc: 10996-done@debbugs.gnu.org, Aaron Meurer To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 10 20:08:33 2012 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 1SHfUX-0007zi-D8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 20:08:33 +0200 Original-Received: from localhost ([::1]:56717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHfUW-0001tI-M9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 14:08:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHfUS-0001sy-Vr for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 14:08:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHfUR-0000vW-3G for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 14:08:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHfIO-0005hX-GR for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 13:56:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHfJO-0006rl-G8 for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 13:57:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Apr 2012 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 10996 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 10996@debbugs.gnu.org, monnier@IRO.UMontreal.CA Original-Received: via spool by 10996-done@debbugs.gnu.org id=D10996.133408058126332 (code D ref 10996); Tue, 10 Apr 2012 17:57:02 +0000 Original-Received: (at 10996-done) by debbugs.gnu.org; 10 Apr 2012 17:56:21 +0000 Original-Received: from localhost ([127.0.0.1]:49201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHfIi-0006qf-Qt for submit@debbugs.gnu.org; Tue, 10 Apr 2012 13:56:21 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53603) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHfIh-0006qZ-Ix for 10996-done@debbugs.gnu.org; Tue, 10 Apr 2012 13:56:20 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3AHtGKU014762; Tue, 10 Apr 2012 13:55:16 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 77E9CB40D6; Tue, 10 Apr 2012 13:55:16 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Tue, 10 Apr 2012 12:51:25 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4188=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4188> : streams <745734> : uri <1097866> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:58717 Archived-At: > Indeed, the problem is that the key is read using the > splash-screen-keymap. My commit is not the actual cause since it only > affects command remapping, and if you try his recipe and hit `q' (which > is not using command-remapping), you'll see that it does something even > more interesting. I.e. the same problem existed with `q' before > my change. I installed the change below which doesn't actually fix the underlying problem but works around it by disabling the splash screen code when running as daemon (it doesn't get displayed anyway, so there's no point running it). Stefan === modified file 'lisp/startup.el' --- lisp/startup.el 2012-03-27 06:45:12 +0000 +++ lisp/startup.el 2012-04-10 17:51:56 +0000 @@ -2341,6 +2341,7 @@ (if (or inhibit-startup-screen initial-buffer-choice noninteractive + (daemonp) inhibit-x-resources) ;; Not displaying a startup screen. If 3 or more files @@ -2383,9 +2384,7 @@ ;; (with-no-warnings ;; (setq menubar-bindings-done t)) - (if (> file-count 0) - (display-startup-screen t) - (display-startup-screen nil))))) + (display-startup-screen (> file-count 0))))) (defun command-line-normalize-file-name (file) "Collapse multiple slashes to one, to handle non-Emacs file names."