From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Minibuffer tray to display current time and date Date: Wed, 22 Apr 2015 13:05:30 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429722365 17333 80.91.229.3 (22 Apr 2015 17:06:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2015 17:06:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 22 19:05:56 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yky60-0000cl-JN for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Apr 2015 19:05:56 +0200 Original-Received: from localhost ([::1]:36203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yky5z-0005GZ-LZ for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Apr 2015 13:05:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yky5o-0005GI-Kc for help-gnu-emacs@gnu.org; Wed, 22 Apr 2015 13:05:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yky5k-0002JB-IB for help-gnu-emacs@gnu.org; Wed, 22 Apr 2015 13:05:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yky5k-0002I4-B3 for help-gnu-emacs@gnu.org; Wed, 22 Apr 2015 13:05:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Yky5h-0000OE-UV for help-gnu-emacs@gnu.org; Wed, 22 Apr 2015 19:05:38 +0200 Original-Received: from 76-10-168-214.dsl.teksavvy.com ([76.10.168.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2015 19:05:37 +0200 Original-Received: from monnier by 76-10-168-214.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Apr 2015 19:05:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 76-10-168-214.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:Vj9tDMnF3Yp3wyRBGlYRBwz1Oc8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103945 Archived-At: > I was wondering if there is a possibility to display current time and date > on the right side (right-aligned) of the minibuffer (similarly to how trays > do on desktops)? I'm OK with the fact that it can disappear when one uses > minibuffer (for `M-x' or whatever), but it should appear again as soon as > minibuffer is idle. I'm also aware of I'd welcome a package that lets you display such info in the minibuffer. This has been requested several times already. Basically, the situation is that what you call the "minibuffer" is actually a mini-window. Those windows can display normal buffers. Among the buffers they display, are the so-called minibuffers, which are normal buffers, named like " *Minibuf-N*", used during minibuffer input. There are also echo-area buffers (2 of them, named " *Echo Area 0/1*") which are used to display "message"s. IIUC, the "idle minibuffer" AFAIK is actually displaying the buffer " *Minibuf-0*", so if you put the data you want into that buffer, it should be displayed where/when you want it. E.g. try: M-: (with-current-buffer " *Minibuf-0*" (insert "I'm Idle!")) RET *BUT*, IIRC there is somewhere in the C code where we sometimes just "clear" the mini-window (under the assumption that the buffer it displays doesn't contain anything) instead of actually displaying its content, so in order for such a package to work reliably, we may need to patch the C code. But it might work well enough to be usable without such a patch. Stefan