From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brad Johnson Newsgroups: gmane.emacs.bugs Subject: bug#21053: 24.5; emacs "-nw" option crashes in zsh brad@pesquared.com Date: Tue, 14 Jul 2015 04:16:55 -0400 Message-ID: References: <83oajfo9r8.fsf@folsum.i-did-not-set--mail-host-address--so-tickle-me> <87380r2pda.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3167248175c051ad17779 X-Trace: ger.gmane.org 1436861910 12800 80.91.229.3 (14 Jul 2015 08:18:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2015 08:18:30 +0000 (UTC) Cc: 21053 <21053@debbugs.gnu.org> To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 14 10:18:16 2015 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 1ZEvPo-0004mP-Ml for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jul 2015 10:18:12 +0200 Original-Received: from localhost ([::1]:58466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEvPo-0004C3-01 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jul 2015 04:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEvPi-0004Bt-Qq for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2015 04:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEvPe-0005N1-NX for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2015 04:18:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEvPe-0005Mm-Ke for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2015 04:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZEvPe-00057B-EU for bug-gnu-emacs@gnu.org; Tue, 14 Jul 2015 04:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brad Johnson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jul 2015 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21053-submit@debbugs.gnu.org id=B21053.143686184319600 (code B ref 21053); Tue, 14 Jul 2015 08:18:02 +0000 Original-Received: (at 21053) by debbugs.gnu.org; 14 Jul 2015 08:17:23 +0000 Original-Received: from localhost ([127.0.0.1]:48657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEvP0-000563-Te for submit@debbugs.gnu.org; Tue, 14 Jul 2015 04:17:23 -0400 Original-Received: from mail-oi0-f43.google.com ([209.85.218.43]:35113) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEvOz-00055o-0B for 21053@debbugs.gnu.org; Tue, 14 Jul 2015 04:17:21 -0400 Original-Received: by oihq81 with SMTP id q81so1645316oih.2 for <21053@debbugs.gnu.org>; Tue, 14 Jul 2015 01:17:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=dVdOuoQkmGWkK09R39K6vN4a1VQRxiNz72a0iS0nPb8=; b=C5kpGK7uWyApKn1jnFaQTdjZAGbIs6q9d34HN9WwnOwpR3a0BTKCfU6fFVlrx6fa6S AwiGd/GybrMM8Kjzpuj8jLo9remCqgsFfqLS6/06o3fDKfBGKPfgpxWDnVMeX9UzHTlU QfhizQuA+XXiRXP5dh9t1FzRgDiyPmj0XAwrbYDFzratFtPVLKoEqFFKUmJWD/JqXmy2 tiwoVW6p3j0mj7+PgTNRLLK9BMTlyFlBVKoSKTYsLrHmw2kTc15mh2avpJA0RfVkD+Tv ugP3W5echKE0He7gjqs9Qf30l/W2ln/ew4COnEZ1RuXzXAPzSkobORhB4R/BaK+SA7wj hYDA== X-Gm-Message-State: ALoCoQk7lqw1hvbfRNsqNlKhmd0jWkLSUC0sVj5P96J+uNq9LsIOeuP7kzz9PUasNPM5xEh1ah3w X-Received: by 10.182.220.194 with SMTP id py2mr13840291obc.76.1436861835246; Tue, 14 Jul 2015 01:17:15 -0700 (PDT) Original-Received: by 10.202.104.3 with HTTP; Tue, 14 Jul 2015 01:16:55 -0700 (PDT) X-Originating-IP: [172.72.211.103] In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:104964 Archived-At: --001a11c3167248175c051ad17779 Content-Type: text/plain; charset=UTF-8 Tassilo, Ok the "emacs-cli)" plugin is just a typo, that does not do anything, but the .oh-my-zsh with the "emacs" plugin looks to be the cause of the crashes. Looking closer at the plugin it refers to emacs 23 and has some odd useless alias definitions, it is likely this is the problem not emacs. " ~/.oh-my-zsh/plugins/emacs: cat emacs.plugin.zsh # Emacs 23 daemon capability is a killing feature. # One emacs process handles all your frames whether # you use a frame opened in a terminal via a ssh connection or X frames # opened on the same host. # Benefits are multiple # - You don't have the cost of starting Emacs all the time anymore # - Opening a file is as fast as Emacs does not have anything else to do. # - You can share opened buffered across opened frames. # - Configuration changes made at runtime are applied to all frames. if "$ZSH/tools/require_tool.sh" emacs 23 2>/dev/null ; then export EMACS_PLUGIN_LAUNCHER="$ZSH/plugins/emacs/emacsclient.sh" # set EDITOR if not already defined. export EDITOR="${EDITOR:-${EMACS_PLUGIN_LAUNCHER}}" alias emacs="$EMACS_PLUGIN_LAUNCHER --no-wait" alias e=emacs # same than M-x eval but from outside Emacs. alias eeval="$EMACS_PLUGIN_LAUNCHER --eval" # create a new X frame alias eframe='emacsclient --alternate-editor "" --create-frame' # to code all night long alias emasc=emacs alias emcas=emacs # Write to standard output the path to the file # opened in the current buffer. function efile { local cmd="(buffer-file-name (window-buffer))" "$EMACS_PLUGIN_LAUNCHER" --eval "$cmd" | tr -d \" } # Write to standard output the directory of the file # opened in the the current buffer function ecd { local cmd="(let ((buf-name (buffer-file-name (window-buffer)))) (if buf-name (file-name-directory buf-name)))" local dir="$($EMACS_PLUGIN_LAUNCHER --eval $cmd | tr -d \")" if [ -n "$dir" ] ;then echo "$dir" else echo "can not deduce current buffer filename." >/dev/stderr return 1 fi } fi ## Local Variables: ## mode: sh ## End: " On Tue, Jul 14, 2015 at 4:00 AM, Brad Johnson wrote: > I may have isolated the problem > in .zshrc > > plugins=(emacs) #crashes > > plugins=(emacs-cli) #works > > > > On Tue, Jul 14, 2015 at 3:42 AM, Brad Johnson wrote: > >> I had a few oh-my-zsh plugins running, I edited my .zshrc file to a more >> basic setting and "emacs -nw" now works. I will see if I can narrow down >> which plugin is the problem. >> >> On Tue, Jul 14, 2015 at 3:02 AM, Tassilo Horn wrote: >> >>> Brad writes: >>> >>> Hi Brad, >>> >>> > When launching emacs with the -nw option emacs crashes immediatly when >>> > using the zsh shell. If I swithch to the bash shell "emacs -nw" works >>> > find. >>> >>> I also use ZSH but can't reproduce the crashes. Can you try bisecting >>> the ZSH init files, see (info "(zsh)Files"), to find out if there's some >>> specific setting triggering the crash? >>> >>> Bye, >>> Tassilo >>> >> >> >> >> -- >> Brad Johnson, PE >> ph 704.916.9732 >> www.pesquared.com >> > > > > -- > Brad Johnson, PE > ph 704.916.9732 > www.pesquared.com > -- Brad Johnson, PE ph 704.916.9732 www.pesquared.com --001a11c3167248175c051ad17779 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Tassilo,

Ok the "emacs-= cli)" plugin is just a typo, that does not do anything, but the .oh-my= -zsh with the "emacs" plugin looks to be the cause of the crashes= .

Looking closer at the plugin it refers to emacs = 23 and has some odd useless alias definitions, it is likely this is the pro= blem not emacs.
"
~/.oh-my-zsh/plugins/emacs: cat = emacs.plugin.zsh=C2=A0
# Emacs 23 daemon capability is a killing = feature.
# One emacs process handles all your frames whether
# you use a frame opened in a terminal via a ssh connection or X fram= es
# opened on the same host.

# Benefits= are multiple
# - You don't have the cost of starting Emacs a= ll the time anymore
# - Opening a file is as fast as Emacs does n= ot have anything else to do.
# - You can share opened buffered ac= ross opened frames.
# - Configuration changes made at runtime are= applied to all frames.


if "$Z= SH/tools/require_tool.sh" emacs 23 2>/dev/null ; then
=C2= =A0 =C2=A0 export EMACS_PLUGIN_LAUNCHER=3D"$ZSH/plugins/emacs/emacscli= ent.sh"

=C2=A0 =C2=A0 # set EDITOR if not alr= eady defined.
=C2=A0 =C2=A0 export EDITOR=3D"${EDITOR:-${EMA= CS_PLUGIN_LAUNCHER}}"

=C2=A0 =C2=A0 alias ema= cs=3D"$EMACS_PLUGIN_LAUNCHER --no-wait"
=C2=A0 =C2=A0 a= lias e=3Demacs

=C2=A0 =C2=A0 # same than M-x eval = but from outside Emacs.
=C2=A0 =C2=A0 alias eeval=3D"$EMACS_= PLUGIN_LAUNCHER --eval"
=C2=A0 =C2=A0 # create a new X frame=
=C2=A0 =C2=A0 alias eframe=3D'emacsclient --alternate-editor= "" --create-frame'

=C2=A0 =C2=A0 # = to code all night long
=C2=A0 =C2=A0 alias emasc=3Demacs
=C2=A0 =C2=A0 alias emcas=3Demacs

=C2=A0 =C2=A0 = # Write to standard output the path to the file
=C2=A0 =C2=A0 # o= pened in the current buffer.
=C2=A0 =C2=A0 function efile {
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 local cmd=3D"(buffer-file-name (windo= w-buffer))"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "$EMACS_PLUGIN_= LAUNCHER" --eval "$cmd" | tr -d \"
=C2=A0 =C2= =A0 }

=C2=A0 =C2=A0 # Write to standard output the= directory of the file
=C2=A0 =C2=A0 # opened in the the current = buffer
=C2=A0 =C2=A0 function ecd {
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 local cmd=3D"(let ((buf-name (buffer-file-name (window-buff= er))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(if buf-name (file-name-directory buf-name)))"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 local dir=3D"$($EMAC= S_PLUGIN_LAUNCHER --eval $cmd | tr -d \")"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 if [ -n "$dir" ] ;then
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "$dir"
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 echo= "can not deduce current buffer filename." >/dev/stderr
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 1
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 fi
=C2=A0 =C2=A0 }
fi

<= /div>
## Local Variables:
## mode: sh
## End:
=
"

On Tue, Jul 14, 2015 at 4:00 AM, Brad Johnson <<= a href=3D"mailto:brad@pesquared.com" target=3D"_blank">brad@pesquared.com> wrote:
I m= ay have isolated the problem
in .zshrc

plugins= =3D(emacs) #crashes

plugins=3D(emacs-cli) #wor= ks



On Tue, = Jul 14, 2015 at 3:42 AM, Brad Johnson <brad@pesquared.com> = wrote:
I had a few oh-my= -zsh plugins running, I edited my .zshrc file to a more basic setting and &= quot;emacs -nw" now works.=C2=A0 I will see if I can narrow down which= plugin is the problem.

On Tue, Jul 14, 2015 at 3:02 AM, Tassilo Horn <tsdh@gnu.o= rg> wrote:
Brad <brad@pesquared.com>= writes:

Hi Brad,

> When launching emacs with the -nw option emacs crashes immediatly when=
> using the zsh shell.=C2=A0 If I swithch to the bash shell "emacs = -nw" works
> find.

I also use ZSH but can't reproduce the crashes.=C2=A0 Can you try bisec= ting
the ZSH init files, see (info "(zsh)Files"), to find out if there= 's some
specific setting triggering the crash?

Bye,
Tassilo



<= font color=3D"#888888">--
Brad Johnson, PE
ph 704.916.9732
www.pesquared.com<= /div>



--
Brad Jo= hnson, PE
ph 704.916.9732
www.pesquared.com



--
=
Brad Johnson, PE
ph 704.916.9732
www.pesquared.com
--001a11c3167248175c051ad17779--