From: Jorge Alberto Garcia <jorge.garcia.gonzalez@gmail.com>
To: Constantin Kulikov <zxnotdead@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Why not processing emacsclient's command line arguments with user defined functions?
Date: Mon, 18 Jan 2016 10:57:32 -0600 [thread overview]
Message-ID: <CAPfrtUfQOkqgHCDQ6hUONmDR34qytY4_j0dgnZ=h3UhqaLF2Qw@mail.gmail.com> (raw)
In-Reply-To: <CAFkz2yo1+oAgvhBFJ-RSpgX_6QG_ZMSUHeg_2Eyc5BbwqDJFqQ@mail.gmail.com>
On Mon, Jan 18, 2016 at 1:10 AM, Constantin Kulikov <zxnotdead@gmail.com> wrote:
>> Can you elaborate
>
> What to eleborate here? You want a new feature for emacsclient so you go and
> patch C source. Tomorrow you'l want a new commandline option.
Hi !
This specific feature works at the same layer that the current
+line:col option; implemented at emacsclient.c,
> So why no one here think about general solutions?
>
I agree on having an infrastructure to handle command line options, this patch
uses what is available right now.
> Emacslisp solution is always better than C. (Hooks, hooks must be everywhere
> in emacs)
If you mean an elisp hook is usually better than C, I would agree.
>
> How it could be implemented:
> (I'd say that we can use the same command-line-functions and
> command-switch-alist but it could break backward compatibility, so it'll
> better to use a new variables I think -- emacs-client-argumet-string or
> something.)
>
Thanks I didn't knew about this.
> 1. emacsclient searches for 'connection related' arguments because they are
> needed to know how to connect to the daemon.
> 2. emacsclient sends the full arguments string to the server.
> 3. server calls user(and predefined) hooks which must examine and do
> manipulations on that string.
Feel free to send a proposal,
If a new implementation is better, I would be happy to use it on next
emacs release.
>
prev parent reply other threads:[~2016-01-18 16:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-16 16:57 Why not processing emacsclient's command line arguments with user defined functions? Constantin Kulikov
2016-01-17 15:55 ` Jorge Alberto Garcia
2016-01-18 7:10 ` Constantin Kulikov
2016-01-18 16:57 ` Jorge Alberto Garcia [this message]
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='CAPfrtUfQOkqgHCDQ6hUONmDR34qytY4_j0dgnZ=h3UhqaLF2Qw@mail.gmail.com' \
--to=jorge.garcia.gonzalez@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=zxnotdead@gmail.com \
/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.