From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Minibuffer tray to display current time and date Date: Tue, 28 Apr 2015 20:30:36 +0300 Message-ID: <83egn4upmr.fsf@gnu.org> References: <87h9s7hd7a.fsf@debian.uxu> <87383qvoi4.fsf@debian.uxu> <874mo6bgzx.fsf@debian.uxu> <20150424141319.GA19093@tuxteam.de> <831tj9zizy.fsf@gnu.org> <87ioclo9p5.fsf@yale.edu> <83wq11xyiu.fsf@gnu.org> <87h9s3havb.fsf@yale.edu> <83bnibx7wy.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1430242289 32625 80.91.229.3 (28 Apr 2015 17:31:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Apr 2015 17:31:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 28 19:31:21 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 1Yn9Lo-0003LC-JR for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 19:31:16 +0200 Original-Received: from localhost ([::1]:35185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn9Ln-0001OG-UM for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Apr 2015 13:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn9LM-0001Mf-1D for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 13:30:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn9LH-0007No-Uw for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 13:30:47 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:49095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn9LH-0007NV-Go for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 13:30:43 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NNJ00L001QXWN00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 20:30:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNJ00LJ81Z5TI50@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Tue, 28 Apr 2015 20:30:42 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:104040 Archived-At: > Date: Tue, 28 Apr 2015 19:27:05 +0200 > From: Alexander Shukaev > Cc: help-gnu-emacs > > One feature I thought about is justifying it to the right. This function > should do the job: > > (defun minibuffer-line-right-justified > (string) > (format (format "%d %%s" (- (window-width (minibuffer-window)) (length > string))) string)) Why not use :align-to instead?