From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Current master does not work with sr-speedbar package (W64 build) Date: Wed, 05 Dec 2018 20:34:16 +0200 Message-ID: <835zw7961j.fsf@gnu.org> References: <1723869815.291238.1543945851468@mail.libero.it> <831s6x9ntx.fsf@gnu.org> <1892341033.303375.1543966279338@mail.libero.it> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1544034975 12125 195.159.176.226 (5 Dec 2018 18:36:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 18:36:15 +0000 (UTC) Cc: hong@topbug.net, sebastian_rose@gmx.de, plunix@users.sourceforge.net, emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 19:36:11 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUc1q-00033E-Qi for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 19:36:10 +0100 Original-Received: from localhost ([::1]:36185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUc3x-0000uS-De for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 13:38:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUc3h-0000VM-PT for emacs-devel@gnu.org; Wed, 05 Dec 2018 13:38:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUc0j-0001gP-Vg for emacs-devel@gnu.org; Wed, 05 Dec 2018 13:35:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUc04-0000nV-I1; Wed, 05 Dec 2018 13:34:21 -0500 Original-Received: from [176.228.60.248] (port=4025 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gUc04-0002Xx-3j; Wed, 05 Dec 2018 13:34:20 -0500 In-reply-to: <1892341033.303375.1543966279338@mail.libero.it> (message from Angelo Graziosi on Wed, 5 Dec 2018 00:31:19 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231637 Archived-At: > Date: Wed, 5 Dec 2018 00:31:19 +0100 (CET) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org, sebastian_rose@gmx.de, plunix@users.sourceforge.net, > hong@topbug.net > > ;; Sr-speedbar startup > (defun start-sr-speedbar () > "My customization for `sr-speedbar' startup." > (interactive) > > ;; Start sr-speedbar at Emacs startup > (sr-speedbar-open) > > ;; As suggested here: > ;; > ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2017-07/msg01125.html > ;; > ;; (Really I had tried this solution but putting it in wrong place!) > ;; > (ad-deactivate 'pop-to-buffer) Can you explain why you need the above ad-deactivate? > ;;(add-hook 'emacs-startup-hook 'start-sr-speedbar) ; the old way > (add-hook 'window-setup-hook 'start-sr-speedbar) And why do you start sr-speedbar from window-setup-hook? > I notice that with that init file, now Emacs starts with a double scratch buffer (one in text window and one in sr-speedbar window) and minibuffer contains "Opening directory: No such file or directory, c:/msys2/tmp/emacs-master/src/". Indeed I removed the directory: c:/msys2/tmp/emacs-master. It is the directory where the Emacs source is expanded (I use the emacs-master.tar.gz from git repo). I think this is because the sr-speedbar window is a dedicated window, so Emacs cannot switch to *scratch* in that window. Removing sr-speedbar invocation from window-setup-hook will probably fix that.