|
From: | Emanuel Berg |
Subject: | Re: [SOLVED] Re: How to detect two emacs process in Elisp code? |
Date: | Thu, 03 Sep 2020 04:47:03 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
numbchild@gmail.com wrote: > Thanks for quick reply. Confirmed it solved my > problem. Thanks very much! Np :) But what about this? (defun how-many-emacs-2 () (let*((ps-outp (shell-command-to-string "ps -C emacs -o pid=")) (ps-lst (split-string ps-outp)) ) (length ps-lst) )) ;; (how-many-emacs-2) ; 1 Looks better, right? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |