all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#66165: 30.0.50; Issue with process-get as a place
@ 2023-09-23  6:53 Augusto Stoffel
  2023-09-24  5:27 ` Michael Heerdegen
  0 siblings, 1 reply; 2+ messages in thread
From: Augusto Stoffel @ 2023-09-23  6:53 UTC (permalink / raw)
  To: 66165

In some buffer with a process, I get this result:

  (let ((proc (get-buffer-process (current-buffer))))
    (process-put proc 'test 0)
    (cl-incf (process-get proc 'test))
)

  => (test 1)

I would expect of course to back just a number, as with a regular plist:

  (let ((place '(test 0))) (cl-incf (plist-get place 'test)))

  => 1

This happens because process-put doesn't follow the convention of
returning VALUE.  If it's too late to change that, perhaps process-get
needs a special implementation as a generalized variable.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-24  5:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-23  6:53 bug#66165: 30.0.50; Issue with process-get as a place Augusto Stoffel
2023-09-24  5:27 ` Michael Heerdegen

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.