From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Current master does not work with sr-speedbar package (W64 build) Date: Wed, 5 Dec 2018 00:31:19 +0100 (CET) Message-ID: <1892341033.303375.1543966279338@mail.libero.it> References: <1723869815.291238.1543945851468@mail.libero.it> <831s6x9ntx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543966183 1373 195.159.176.226 (4 Dec 2018 23:29:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2018 23:29:43 +0000 (UTC) Cc: hong@topbug.net, sebastian_rose@gmx.de, plunix@users.sourceforge.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 00:29:39 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 1gUK8I-0000DB-83 for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 00:29:38 +0100 Original-Received: from localhost ([::1]:59338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKAO-0000yn-Ej for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2018 18:31:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUKA8-0000xi-7N for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUKA2-0003hm-O6 for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:31:31 -0500 Original-Received: from smtp-16-i2.italiaonline.it ([213.209.12.16]:45084 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUKA2-0003YU-0f for emacs-devel@gnu.org; Tue, 04 Dec 2018 18:31:26 -0500 Original-Received: from oxapps-04-023.iol.local ([10.101.8.33]) by smtp-16.iol.local with ESMTPA id UK9vgiwnBo0mfUK9vgej87; Wed, 05 Dec 2018 00:31:19 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1543966279; bh=CNRHdkeefRcQk7y82r40sCh1sOIInaFdDY+X6KAfmq8=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=fdTXNc2CabaPnJNXta2Q9egfwlYlcUNpS233pyz1YWpyaF4fkTcjrkY5fZAE7tpIU nyL3CgX9ABTPFQ69wY1nfFVFmXRgqHJ2rfAu5R3KTDBY/EpgRRnKmORW4yi4BSxCPb AFItw/4mSz8pVMYptqi/uHZaa6XGG7V9+05mAt3FyT7GFNkz+ghbuFk9DLo39XCkjb WXu5hIClIaUFN0xrobtmP9pVsHaMvhYUX78gm8Ao0AfjMKzdfexDDr/2QBrG4aGatk Y42mWt0Dxjyd8YmZMogqtDOrDXJL/rFC185M1Mq6LWo6gT6heR3IA5+V30lDXPZ/SE US6qsEA5PP97A== X-CNFS-Analysis: v=2.3 cv=ZYzMyfdA c=1 sm=1 tr=0 a=bdlG+cqNr9wlCKXF9dyP/Q==:117 a=JyM1rq3kU6UA:10 a=IkcTkHD0fZMA:10 a=C5-J_JsoNXcA:10 a=mDV3o1hIAAAA:8 a=OROR9WzSAAAA:20 a=_XKrVaNjAAAA:8 a=9oZt0-tpKjPt57P55mYA:9 a=QEXdDO2ut3YA:10 a=kBNoGs5jNJQA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=028X40DmOm8bOgFXOd3P:22 In-Reply-To: <831s6x9ntx.fsf@gnu.org> X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev51 X-Originating-IP: 82.51.152.100 X-Originating-Client: open-xchange-appsuite x-libjamsun: 8RZ8eqG95zEeGWpPxJ73Oo6RXqifVPTv x-libjamv: 2YKfiV2sPgM= X-CMAE-Envelope: MS4wfAaaE4+wkdRund+N9GuvKxNn+BbDdg098hWojB3sF8l0t9J5Xdp2PUdi0A07uy5BFn/0Dbrg8Hr0d+54ZDwJ0tmNvujigKhbcU07Y0PNt1iCThfytmVS Cu6V6Dtz9QuJkU9j5VGB/qKI8RiEDmBdCbTFgjc1jwu5MKjJFGG0bsD2s5k7SbsTnCYsWbtSgBl1QmkBtGKZWigP/rVFIAItMmL04b1FPm5zE6dPC05Ka581 9S4QWunnbJZfQBygEbf3nEWnbHw/+jQgUUqJuE5ssMfYLeNzgEkcB1A9QQjG/FrV X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 213.209.12.16 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:231617 Archived-At: > Il 4 dicembre 2018 alle 18.57 Eli Zaretskii ha scritto: >=20 >=20 > > Date: Tue, 4 Dec 2018 18:50:51 +0100 (CET) > > From: Angelo Graziosi > >=20 > > Current Emacs master (f745cf8c438) does not work with the sr-speedbar p= ackage (https://github.com/emacsorphanage/sr-speedbar/blob/master/sr-speedb= ar.el) from MELPA. > >=20 > > Usually I have it configured so that Emacs opens in a single frame with= 2 window: one for the text (80 characters in width showing the buffer text= ) and one for sr-speedbar (30 characters in width showing folders and files= ). > >=20 > > After the upgrade to the last Emacs master, the sr-speedbar window has = the same width as before but it shows the buffer text... if I remove the de= sktop file, Emacs start with 2 window each containing the scratch buffer. > >=20 > > If, now, I allow for saving the desktop file, at the next start, I get = 3 window (3 scratch buffers): one window 50 characters in width and 2 windo= w 30 characters in width. At the next start, 4 window, about: 25, 30, 30, 3= 0 and so on... >=20 > Please show the way you configure Emacs for these windows. My guess > is that you call functions that create windows while the selected > window is dedicated to its buffer, or something similar. This is the minimal init.el: ------------------------------------------------------------ $ cat init.el (setq default-frame-alist '( (width . 110) ; character (height . 56) ; lines )) ;; Adds the MELPA repo to Emacs Packages (when (>=3D emacs-major-version 24) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) ;;(package-initialize) ) ;; 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.htm= l ;; ;; (Really I had tried this solution but putting it in wrong place!) ;; (ad-deactivate 'pop-to-buffer) ) ;; Start sr-speedbar, as suggested here: ;; ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/\ ;; 2017-04/msg00569.html ;; ;;(add-hook 'emacs-startup-hook 'start-sr-speedbar) ; the old way (add-hook 'window-setup-hook 'start-sr-speedbar) ;; Setup sr-speedbar (setq sr-speedbar-default-width 30) (setq sr-speedbar-width 30) (setq sr-speedbar-max-width 30) (setq sr-speedbar-auto-refresh t) ------------------------------------------------------------ I notice that with that init file, now Emacs starts with a double scratch b= uffer (one in text window and one in sr-speedbar window) and minibuffer con= tains "Opening directory: No such file or directory, c:/msys2/tmp/emacs-mas= ter/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.t= ar.gz from git repo). I notice also that Buffer menu contains *Compile-Log* buffer with the text: Compiling no file at Wed Dec 5 00:20:12 2018 and *Messages* buffer has text: For information about GNU Emacs and the GNU system, type C-h C-a. =E2=80=98sr-speedbar=E2=80=99 window has exist. speedbar-file-lists: Opening directory: No such file or directory, c:/msys6= 4/tmp/emacs-master/src/ Whwn I use the previous build (Oct 31) with the same init.el, Emacs starts = with the *GNU Emacs* buffer (the same of Help - About Emacs menu) and the m= inibuffer contains "For information about[...]", as expected.