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: Fri, 1 May 2015 06:49:56 +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 1430455813 28118 80.91.229.3 (1 May 2015 04:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 04:50:13 +0000 (UTC) Cc: help-gnu-emacs To: Stefan Monnier , Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 06:50:13 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 1Yo2tv-0007aP-JZ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 06:50:11 +0200 Original-Received: from localhost ([::1]:46732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo2tu-0006RB-Mz for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 00:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo2tk-0006Qq-Fs for help-gnu-emacs@gnu.org; Fri, 01 May 2015 00:50:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yo2tj-0004Is-GX for help-gnu-emacs@gnu.org; Fri, 01 May 2015 00:50:00 -0400 Original-Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:35670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yo2ti-0004Ig-0O; Fri, 01 May 2015 00:49:58 -0400 Original-Received: by labbd9 with SMTP id bd9so58657197lab.2; Thu, 30 Apr 2015 21:49:57 -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 :cc:content-type; bh=P3kOPZNsg2AsAjuCr2QObvNsXbU8U92XEQ3dpfce8HA=; b=KtgAkklqqp6udIpxm5YoSmzsMGbehZVt26Kl2yL4H3wBZkmX63aPvhA5w1caNpDgw8 avrGZ+a6WeG3M/MivpZ2VYU2+A+HnWFl78yPs0oEOLRJcktX2nKiKL+dEg/BduhuoiCi eLlAaPeoJRf17LOYTpUBWS0M4vOxiHBfoOE8feyJwGECCrKbHZJug6soLw2YMw1VSEwM CAVGsqzkMrHBO58wGjWzclYqEWckPfAGzAph+6jptvLJ2RT+X5ZZ5BeHglYfqjCViCIK dY34k+c/fEPM8ts5ZOvCUlqBc/B9TEw597F4/t/FN2+XpIdw4xI6e0d9AE02v4u9vpTb 5wfg== X-Received: by 10.152.4.72 with SMTP id i8mr7008642lai.32.1430455797084; Thu, 30 Apr 2015 21:49:57 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Thu, 30 Apr 2015 21:49:56 -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:c03::233 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:104126 Archived-At: 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?