From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Toggle appointment notification Date: Thu, 3 Dec 2020 00:41:34 +0300 Message-ID: References: <20201201195357.GA17507@tuxteam.de> <878sahgq1i.fsf@web.de> <20201202084116.GA14592@tuxteam.de> <20201202123740.GC14592@tuxteam.de> <20201202211439.GA13168@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40781"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: Christopher Dimech , help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 02 22:46:26 2020 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 1kkZxC-000AVE-6z for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 22:46:26 +0100 Original-Received: from localhost ([::1]:42902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkZxB-0006Qv-46 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 16:46:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkZvl-0006Qn-4b for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 16:44:57 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:42393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkZvj-0000Ta-7i for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 16:44:56 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0007.000000005FC80AD4.00003DF7; Wed, 02 Dec 2020 21:44:51 +0000 Content-Disposition: inline In-Reply-To: <20201202211439.GA13168@tuxteam.de> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, LOTS_OF_MONEY=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:125846 Archived-At: * tomas@tuxteam.de [2020-12-03 00:14]: > On Wed, Dec 02, 2020 at 06:08:24PM +0300, Jean Louis wrote: > > [...] > > > I was forgetting that (message) is formatting itself and wanted to > > forget about it when debugging. > > > > Often I wish to show value of a function in buffer, so I used > > `message-any', it appeared easier, but need not be. If I forget "%s" > > then it would not work. > > Strange. I don't have `message-any'. > > When I want to have in the current buffer, I do > > (insert (format ...)) In current buffer evaluation is easy with: {M-x lisp-interaction-mode} as then with C-j you get result in the next line: (+ 2 2) 4 Otherwise in any buffer one could bind eval-print-last-sexp to a key to get same effect, then undo to delete it. I am often inserting things like pricing by replacing the current expression: (defun replace-last-sexp () "Eval last sexp and replaces it in the buffer with its result." (interactive) (let ((result (eval (elisp--preceding-sexp)))) (kill-sexp -1) (insert (format "%s" result)))) Then when writing emails I write sometimes expression that replaces itself even with complicated sentences something like this: With 3 machines and 10 hours of work per day and grade of 0.70 we can make 1260.00 units, equivalent to US $64863.38 per month.