From: Brad Johnson <brad@pesquared.com>
To: Tassilo Horn <tsdh@gnu.org>
Cc: 21053 <21053@debbugs.gnu.org>
Subject: bug#21053: 24.5; emacs "-nw" option crashes in zsh brad@pesquared.com
Date: Tue, 14 Jul 2015 04:16:55 -0400 [thread overview]
Message-ID: <CADSjb9X4+PEK7NXCbyXzDvhBJxhpMUxVHngcoXnGG_s9viXpUg@mail.gmail.com> (raw)
In-Reply-To: <CADSjb9UMRKPzgaaoPc6GzCXaWXs8W_-pfZoFZNPqx7Kc1_PpVA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3377 bytes --]
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 <brad@pesquared.com> 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 <brad@pesquared.com> 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 <tsdh@gnu.org> wrote:
>>
>>> Brad <brad@pesquared.com> 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
[-- Attachment #2: Type: text/html, Size: 5976 bytes --]
next prev parent reply other threads:[~2015-07-14 8:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 0:36 bug#21053: 24.5; emacs "-nw" option crashes in zsh brad@pesquared.com Brad
2015-07-14 7:02 ` Tassilo Horn
2015-07-14 7:42 ` Brad Johnson
2015-07-14 8:00 ` Brad Johnson
2015-07-14 8:16 ` Brad Johnson [this message]
2015-07-14 10:46 ` Tassilo Horn
2016-12-07 18:53 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADSjb9X4+PEK7NXCbyXzDvhBJxhpMUxVHngcoXnGG_s9viXpUg@mail.gmail.com \
--to=brad@pesquared.com \
--cc=21053@debbugs.gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.