From: Nikolai Weibull <now@bitwi.se>
To: Zsh Workers <zsh-workers@zsh.org>
Subject: Completion/Unix/_emacsclient
Date: Mon, 23 Apr 2012 08:47:39 +0200 [thread overview]
Message-ID: <CADdV=Mvm7M=F-WHTUKJi3ViX3PDxhETzd6rn1+eEJ87WTC0_gg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 56 bytes --]
Hi!
Please find Completion/Unix/_emacsclient attached.
[-- Attachment #2: _emacsclient --]
[-- Type: application/octet-stream, Size: 1193 bytes --]
#compdef emacsclient
local state line curcontext="$curcontext" ret=1
typeset -A opt_args
_arguments -C -S \
'(-a --alternate-editor)'{-a,--alternate-editor=}'[use given editor if no server available]' \
'(-c --create-frame)'{-c,--create-frame}'[create and use new frame]' \
'(-d --display)'{-d,--display=}'[tell server to display file on given display]: :_x_display' \
'--eval[evaluate arguments as lisp expressions]' \
'(-f --server-file)'{-f,--server-file=}'[use given TCP configuration file for communication]:TCP configuration file:_files' \
'(-n --no-wait)'{-n,--no-wait}'[return immediately instead of waiting for editing to finish]' \
'(-nw -t --terminal)'{-nw,-t,--terminal}'[open new frame on current terminal]' \
'(-s --socket-name)'{-s,--socket-name=}'[use given socket file for communication]:socket:_files -g "*(=)"' \
'(- *)'{-V,--version}'[display version information and exit]' \
'(- *)'{-H,--help}'[display help information and exit]' \
'*: :->file-or-expression' && ret=0
case $state in
(file-or-expression)
if [[ -n ${opt_args[(I)--eval]} ]]; then
_message 'lisp expression'
else
_files && ret=0
fi
;;
esac
return ret
reply other threads:[~2012-04-23 6:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CADdV=Mvm7M=F-WHTUKJi3ViX3PDxhETzd6rn1+eEJ87WTC0_gg@mail.gmail.com' \
--to=now@bitwi.se \
--cc=zsh-workers@zsh.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 public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).