From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Minibuffer tray to display current time and date Date: Wed, 6 May 2015 12:31:32 +0200 Message-ID: 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> <871tj4xhhe.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1430908319 2227 80.91.229.3 (6 May 2015 10:31:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2015 10:31:59 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 06 12:31:58 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 1YpwcJ-0001Ay-Nw for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2015 12:31:51 +0200 Original-Received: from localhost ([::1]:43999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpwcJ-000129-3R for geh-help-gnu-emacs@m.gmane.org; Wed, 06 May 2015 06:31:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypwc6-00011l-8J for help-gnu-emacs@gnu.org; Wed, 06 May 2015 06:31:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypwc2-0002bQ-82 for help-gnu-emacs@gnu.org; Wed, 06 May 2015 06:31:38 -0400 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:35253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypwc1-0002ZE-Qh for help-gnu-emacs@gnu.org; Wed, 06 May 2015 06:31:34 -0400 Original-Received: by lbbuc2 with SMTP id uc2so4101633lbb.2 for ; Wed, 06 May 2015 03:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZCo9qB0s/TkkUHgu/Y303pMNfvf5S4dg/sEg4511ne0=; b=g1w2Ab9E8pjrOKMOCU+zrNGa08xmMHlUo/V9KomYN3gHaJ33rTouafpCvgy9usk6ll ugfSSeW8xjyMUhizw/8UZdoFSowwpexc5JEVK5xVQEZ08PXW3zEwpqNyw3Gp7WEMVKNC YtWBIKKnGPZ/il4z7nS09llSU48hbGMEjQ7ktvA1A/bwSzQJvOUiV/cHE7CDXlAWcn5z tgCV2RMNtUOK4XEyl90nGGreAA+Sm+VfBzOHJOWYDLaSSA53P4RYwYabZb7lQboUNsHc iPCKWjXJsl29doo15kMjftBitz2dL+Bzt0L8QMnDeS219UA7gOi90FMiJoYXKRNjsh8C gjRg== X-Received: by 10.152.4.72 with SMTP id i8mr28679879lai.32.1430908292284; Wed, 06 May 2015 03:31:32 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Wed, 6 May 2015 03:31:32 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:104241 Archived-At: I don't like bumping personally, but maybe somebody else (except Eli and Stefan) knows the answer? Thanks in advance. Regards, Alexander On Fri, May 1, 2015 at 6:54 AM, Alexander Shukaev wrote: > The only stanza that works properly so far is this simple one: > > (setq-default minibuffer-line-format > '((:eval (propertize (format-time-string "%Y.%m.%d") > 'face > 'minibuffer-line-date)) > " " > (:eval (propertize (format-time-string "%A") > 'face > 'minibuffer-line-weekday)) > " " > (:eval (propertize (format-time-string "%R") > 'face > 'minibuffer-line-time)))) > > So how do I actually right justify that now? > > On Fri, May 1, 2015 at 6:49 AM, Alexander Shukaev > wrote: > >> I came up with the following code to right-justify: >> >> =E2=80=8B (setq-default minibuffer-line-format >> `((:eval >> (let ((string (concat >> (propertize (format-time-string >> "%Y.%m.%d") >> 'face >> 'minibuffer-line-date) >> " " >> (propertize (format-time-string "%A") >> 'face >> 'minibuffer-line-weekday) >> " " >> (propertize (format-time-string "%R") >> 'face >> 'minibuffer-line-time)))) >> (concat (propertize " " >> 'display >> `((space :align-to >> (- right >> (length ,string))))= ) >> string))))) >> =E2=80=8B >> But it does not do what it should do. Faces are not propagated and >> alignment too. What's wrong with this code? >> > >