From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Is there a way to avoid clobbering minibuffer by messages? Date: Fri, 31 Mar 2023 11:40:25 +0100 Organization: On the Interweb somewhere Message-ID: <87o7o96w6e.fsf@ucl.ac.uk> References: <3f004ca9-1f71-2c5b-17f1-e154f209e6d3@gmail.com> <83ilei62o6.fsf@gnu.org> <8d94bd37-d657-cf14-c0cb-372cde983ee0@gmail.com> <837cuy5y2m.fsf@gnu.org> <83fs9m42pc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25234"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: gnus (Emacs 30.0.50) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:0RnoJha9fJVK4ykEW817pOww9o4= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 31 12:41:05 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1piCBs-0006Ok-IT for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 31 Mar 2023 12:41:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piCBS-0006uI-3o; Fri, 31 Mar 2023 06:40:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piCBQ-0006sg-91 for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 06:40:36 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piCBO-000506-KN for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 06:40:36 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1piCBK-0005aQ-GD for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 12:40:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Url: http://twitter.com/ericsfraga/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143177 Archived-At: On Thursday, 30 Mar 2023 at 22:26, Jean Louis wrote: > (setq set-message-function 'dunstify) Quite funny this: I have the opposite. As I live in Emacs, I tend to ignore everything else around me, including messages that are handled by dunst. So I have dunst tell Emacs about any popup messages via this shell script: --8<---------------cut here---------------start------------->8--- #!/bin/sh -f # send dunst message to emacs to keep log in the *Messages* buffer APPNAME="$1" SUMMARY="$2" BODY="$3" ICON="$4" URGENCY="$5" DATE=$(date +%H.%M) emacsclient -n --eval "(let ((s \"${DATE}: ${APPNAME}/${SUMMARY}: $BODY\") (inhibit-message t)) (message (substring s 0 (min (length s) (- (frame-width) 10)))))" --8<---------------cut here---------------end--------------->8--- Sorry for interruption. As you were. eric -- Eric S Fraga via gnus (Emacs 30.0.50 2023-03-21) on Debian 11.6