From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: Recently emacs hangs on startup due to ESS Date: Fri, 29 May 2015 05:18:30 +0000 Message-ID: <1432876710350.51148@stowers.org> References: <677933f341514f91beddea4dd8e60957@exchsrv2.sgc.loc> <3046bf7125624aef810750210b0c71b2@exchsrv2.sgc.loc> <39bdb14cfae24b73800180a7e23bbe60@exchsrv2.sgc.loc>, Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyCgq-0001ZW-A3 for emacs-orgmode@gnu.org; Fri, 29 May 2015 01:18:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyCgl-0002S3-Ij for emacs-orgmode@gnu.org; Fri, 29 May 2015 01:18:40 -0400 Received: from smtp01.stowers.org ([40.141.174.61]:37412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyCgl-0002Rz-Bg for emacs-orgmode@gnu.org; Fri, 29 May 2015 01:18:35 -0400 In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode John, =0A= =0A= Glad you're "cooking with ESS". Gonna hafta chalk your WTF moment up to so= me butterfly in Kamchatka. Or was it Saskatchewan? =0A= =0A= BTW, since you said you use org-mode, please note, when you get next perfor= m a fresh install of org-mode, regardless of the means (package manager, g= it pull, stork brought it, whatevs), make sure it is compiled, and in a fr= esh boot of emacs unsullied by current (and soon to be ancien regime) org-m= ode. In other words, run `emacs -Q` as you do, and install the new org WI= THOUT LOADING THE EXISTING ORG. You have been warned!=0A= =0A= ~ malcolm_cook@stowers.org=0A= =0A= ________________________________________=0A= From: John Hendy =0A= Sent: Thursday, May 28, 2015 11:15 PM=0A= To: Cook, Malcolm=0A= Cc: emacs-orgmode=0A= Subject: Re: [O] Recently emacs hangs on startup due to ESS=0A= =0A= On Thu, May 28, 2015 at 6:34 PM, Cook, Malcolm wrote:=0A= > John, still recommend you try fresh ess, compiled via package manager. A= lso, update any packages needing updated. Maybe speedbar?=0A= =0A= So, I followed your nice ELPA instructions, and things worked. Then I=0A= wondered if it was compilation related, so I did that in my manually=0A= downloaded ESS dir and re-enabled my default load path (instead of=0A= ELPA), and no emacs hang. Then I run make clean, no hang. Then I do=0A= the emacs -Q method in my original email... hang. Then make again, no=0A= hang. Then make clean. No hang.=0A= =0A= I also played with ess-speedbar-use-p in case it's an issue with that,=0A= but at this point I feel like I can't reproducibly cause it to hang=0A= anymore so I don't know what in the world is going on.=0A= =0A= Definite wtf moment for me!=0A= =0A= =0A= Thanks for all of your input/suggestions!=0A= John=0A= =0A= >=0A= > I'm dry,=0A= >=0A= > Best,=0A= >=0A= > Malcolm=0A= >=0A= >> -----Original Message-----=0A= >> From: John Hendy [mailto:jw.hendy@gmail.com]=0A= >> Sent: Thursday, May 28, 2015 6:24 PM=0A= >> To: Cook, Malcolm=0A= >> Cc: emacs-orgmode=0A= >> Subject: Re: [O] Recently emacs hangs on startup due to ESS=0A= >>=0A= >> On Thu, May 28, 2015 at 5:38 PM, Cook, Malcolm =0A= >> wrote:=0A= >> >> On Thu, May 28, 2015 at 5:07 PM, Cook, Malcolm =0A= >> >> wrote:=0A= >> >> > I would install latest ess fresh.=0A= >> >>=0A= >> >> I wondered about that as well, so I tried that prior to posting here.= =0A= >> >> Sorry, I should have listed my version, which is now 15.03-1.=0A= >> >>=0A= >> >> > What version of emacs? The package manager is a moving target=0A= >> >> > these=0A= >> >> days.=0A= >> >>=0A= >> >> GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2)=0A= >> >> (installed via Arch Linux standard package)=0A= >> >>=0A= >> >> > Try to use the package manager to interactively install the latest= =0A= >> >> >=0A= >> >> >> - emacs -Q=0A= >> >> >> following:=0A= >> >> >>=0A= >> http://melpa.org/?utm_source=3Ddlvr.it&utm_medium=3Dtwitter#/getting-=0A= >> >> star=0A= >> >> >> ted=0A= >> >> >> - putting this in the buffer=0A= >> >> >=0A= >> >> > (require 'package) ;; You might already have this line (add-to-list= =0A= >> >> > 'package-archives=0A= >> >> > '("melpa" . "http://melpa.org/packages/") t) (when (<= =0A= >> >> > emacs-major-version 24)=0A= >> >> > ;; For important compatibility libraries like cl-lib=0A= >> >> > (add-to-list 'package-archives '("gnu" .=0A= >> >> > "http://elpa.gnu.org/packages/")))=0A= >> >> > (package-initialize) ;; You might already have this line=0A= >> >> >=0A= >> >>=0A= >> >> I could do this, though I've sort of decided to steer away from=0A= >> >> packages and just manage things manually via my ~/.elisp/site-lisp=0A= >> >> folder. Would this have an affect? My process was to simply download= =0A= >> >> the .zip of ESS, and unpack to ~/.elisp/site-lisp/ess (after deleting= =0A= >> >> the old version). This way, my .emacs can continue to point to=0A= >> >> ~/.elisp/site-lisp/ess/lisp regardless of what version I have.=0A= >> >>=0A= >> >> If manual vs. [m]elpa would make a difference, I suppose I could give= =0A= >> >> the above a whirl.=0A= >> >>=0A= >> >=0A= >> > Well, you'll get everything compiled if you use the package manager.= =0A= >> Worth it just for that! There are other ways to get those files byte-co= mpiled,=0A= >> but the package manager is probably the best.=0A= >>=0A= >> ESS is sounding like compilation is optional, and I never have.=0A= >> - http://ess.r-project.org/Manual/ess.html#Installation=0A= >>=0A= >> >=0A= >> > Also, the package manager can help you discover when updates exist to= =0A= >> ALL your eamcs packages. Worth learning for that.=0A= >>=0A= >> Definitely. I may look into that. I pretty much just use Org and R, so n= ot super=0A= >> worried about it, but I really don't know enough to understand what othe= r=0A= >> packages ship with emacs that I could/should be updating!=0A= >>=0A= >> >=0A= >> > OTOH, as I said, it has been in flux lately and is still a moving targ= et.=0A= >> >=0A= >> > BTW, when did you last update emacs?=0A= >>=0A= >> $ grep emacs /var/log/pacman.log=0A= >>=0A= >> [2014-06-14 20:49] [PACMAN] upgraded emacs (24.3-6 -> 24.3-7)=0A= >> [2014-10-23 10:28] [PACMAN] upgraded emacs (24.3-7 -> 24.4-1)=0A= >> [2015-01-19 01:36] [ALPM] upgraded emacs (24.4-1 -> 24.4-2)=0A= >> [2015-04-20 13:14] [ALPM] upgraded emacs (24.4-2 -> 24.5-1)=0A= >>=0A= >> >=0A= >> > And, does (require 'ess-site) ALL BY ITSELF generate your error?=0A= >> >=0A= >>=0A= >> Yup, see the original email:=0A= >>=0A= >> #+begin_quote=0A= >>=0A= >> I can reproduce this with:=0A= >> - emacs -Q=0A= >> - putting this in the buffer=0A= >>=0A= >> (add-to-list 'load-path "/path/to/ess/lisp") (require 'ess-site)=0A= >>=0A= >> - M-x eval-region on the above two lines=0A= >>=0A= >> #+end_quote=0A= >>=0A= >>=0A= >> Thanks for the assistance!=0A= >> John=0A= >>=0A= >> > ~Malcolm=0A= >> >=0A= >> >=0A= >> >>=0A= >> >> Best regards,=0A= >> >> John=0A= >> >>=0A= >> >> >=0A= >> >> >>=0A= >> >> >> - M-x eval-region on the above lines=0A= >> >> >>=0A= >> >> >=0A= >> >> > Then, M-x list-packages and install it by positioning the cursor on= =0A= >> >> > the line=0A= >> >> mentioning the ess package from melpa and typing "I".=0A= >> >> >=0A= >> >> > The type "x" to execute your decision, and confirm with "yes".=0A= >> >> >=0A= >> >> > Now, delete or move/hide your old ess bits and restart emacs.=0A= >> >> >=0A= >> >> > Did it work?=0A= >> >> >=0A= >> >> >> -----Original Message-----=0A= >> >> >> From: emacs-orgmode-bounces+mec=3Dstowers.org@gnu.org=0A= >> >> [mailto:emacs-=0A= >> >> >> orgmode-bounces+mec=3Dstowers.org@gnu.org] On Behalf Of John=0A= >> Hendy=0A= >> >> >> Sent: Thursday, May 28, 2015 2:51 PM=0A= >> >> >> To: emacs-orgmode=0A= >> >> >> Subject: [O] Recently emacs hangs on startup due to ESS=0A= >> >> >>=0A= >> >> >> Over the past couple of weeks, I've been having some issues with= =0A= >> >> >> emacs hanging on startup. I usually kill the process, but=0A= >> >> >> inadvertently left it in the background today, noting much later= =0A= >> >> >> that it ended up starting. I played with commenting out various=0A= >> >> >> parts of my config until I narrowed things down to the line:=0A= >> >> >>=0A= >> >> >> (require 'ess-site)=0A= >> >> >>=0A= >> >> >> the message buffer displays "enabling speedbar support" for a=0A= >> >> >> reeeaaally long time before it eventually starts up.=0A= >> >> >>=0A= >> >> >> I tried debug-on-signal and eval-expression-debug-on-error... I'm= =0A= >> >> >> not sure what is supposed to happen with debug options, but no=0A= >> >> >> debug buffer pops up. The only lines that appear relevant in=0A= >> *Messages* are:=0A= >> >> >>=0A= >> >> >> ad-handle-definition: `ess-indent-command' got redefined=0A= >> >> >> ad-handle-definition: `ess-eval-line-and-step' got redefined=0A= >> >> >>=0A= >> >> >> How might I diagnose this further?. I'm not familiar with chasing= =0A= >> >> >> down Emacs issues other than narrowing it down to a config file=0A= >> option.=0A= >> >> >>=0A= >> >> >> I can reproduce this with:=0A= >> >> >> - emacs -Q=0A= >> >> >> - putting this in the buffer=0A= >> >> >>=0A= >> >> >> (add-to-list 'load-path "/path/to/ess/lisp") (require 'ess-site)= =0A= >> >> >>=0A= >> >> >> - M-x eval-region on the above two lines=0A= >> >> >>=0A= >> >> >>=0A= >> >> >> Thanks for any suggestions,=0A= >> >> >> John=0A= >> >> >=