Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #176600
| From | kamaraju kusumanchi <raju.mailinglists@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: reportbug and remapped "edit" |
| Date | 2017-01-12 04:40 +0100 |
| Message-ID | <sYEp4-7eK-13@gated-at.bofh.it> (permalink) |
| References | <sYs4x-7ZN-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 11, 2017 at 9:27 AM, Boyan Penkov <boyan.penkov@gmail.com> wrote: > Hello, > > I am trying to use reportbug to file a bug report. > > However, my .zshrc contains "alias edit='emacsclient -c -s > /tmp/emacs1000/server", as I have an emacs session running and would like to > be able to use "edit file.txt" in the terminal to spawn a connection to > emacsclient. > > When running reportbug, this yields: > > Spawning emacsclient... > emacsclient: connect: Connection refused > emacsclient: No socket or alternate editor. Please use: > > --socket-name > --server-file (or environment variable EMACS_SERVER_FILE) > --alternate-editor (or environment variable ALTERNATE_EDITOR) > Warning: possible error exit from emacsclient: 256 > No changes were made in the editor. > > Ok, fine -- what's the workaround? Just unalias the alias corresponding to edit (the one you set up in ~/.zshrc) before launching reportbug. After that set it back. IIUC there is no need to launch a bash subshell to do this. You can do everything while you are in zsh. So the sequence of commands would be % unalias edit % reportbug & % alias edit='emacsclient -c -s /tmp/emacs1000/server' hope that helps raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-11 15:30 +0100
Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-11 16:00 +0100
Re: reportbug and remapped "edit" Hans <hans.ullrich@loop.de> - 2017-01-11 16:10 +0100
Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-11 16:40 +0100
Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-12 04:40 +0100
Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 06:00 +0100
Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-12 07:10 +0100
Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 13:30 +0100
Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 17:30 +0100
Re: reportbug and remapped "edit" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-01-12 17:30 +0100
Re: reportbug and remapped "edit" Nicolas George <george@nsup.org> - 2017-01-12 17:40 +0100
Re: reportbug and remapped "edit" Greg Wooledge <wooledg@eeg.ccf.org> - 2017-01-12 17:50 +0100
Re: reportbug and remapped "edit" David Wright <deblis@lionunicorn.co.uk> - 2017-01-12 22:10 +0100
Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 18:30 +0100
Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-01-12 13:30 +0100
Re: reportbug and remapped "edit" kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2017-01-13 03:00 +0100
Re: reportbug and remapped "edit" Boyan Penkov <boyan.penkov@gmail.com> - 2017-02-07 16:20 +0100
Re: reportbug and remapped "edit" Nicolas George <george@nsup.org> - 2017-01-12 10:30 +0100
Re: reportbug and remapped "edit" Jonathan Dowland <jmtd@debian.org> - 2017-01-12 11:10 +0100
csiph-web