help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too fine design granularity leads to numerous macro/function/command


From: Emanuel Berg
Subject: Re: Too fine design granularity leads to numerous macro/function/command existed in Emacs.
Date: Sat, 14 Aug 2021 01:47:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hongyi Zhao wrote:

> It seems Emacs lisp don't have pipe at all.

You can do IPC with Emacs, see/try for example:

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   http://user.it.uu.se/~embe8573/emacs-init/signal.el
;;;   https://dataswamp.org/~incal/emacs-init/signal.el

(defun signal-usr1-f ()
  (interactive)
  (message "got signal: USR1") )

(define-key special-event-map [sigusr1] #'signal-usr1-f)

;; test:
;;
;; from Emacs:  (signal-process (emacs-pid) 'sigusr1)
;;
;; from zsh: kill -s usr1 $(ps -e | grep emacs | cut -d " " -f 2)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]