all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Pass an argument to a sentinel?
Date: Sat, 29 Jul 2017 09:21:11 +0300	[thread overview]
Message-ID: <831soz4vc8.fsf@gnu.org> (raw)
In-Reply-To: <88f84448-db99-8325-71fd-b7d0489d874f@riseup.net> (message from Yassin Philip on Fri, 28 Jul 2017 21:16:14 +0100)

> From: Yassin Philip <philcm@gnu.org>
> Date: Fri, 28 Jul 2017 21:16:14 +0100
> 
>     "The sentinel receives /two arguments/: the process for which the
>     event occurred, and a string describing the type of event." 
> 
> But I need it to receive at least one more argument, because at the end 
> of the process, the context (like the buffer at the time of the sentinel 
> call) may have changed.
> 
> How can I pass arguments to a sentinel?

One way is to have a global variable with those additional values.
Another is to put a property on the process object whose value
provides those arguments.



  reply	other threads:[~2017-07-29  6:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-28 20:16 Pass an argument to a sentinel? Yassin Philip
2017-07-29  6:21 ` Eli Zaretskii [this message]
2017-07-29 12:54   ` Philipp Stephani

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=831soz4vc8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.