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: Thu, 25 Jun 2015 21:18:16 +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 X-Trace: ger.gmane.org 1435259926 15295 80.91.229.3 (25 Jun 2015 19:18:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 19:18:46 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 21:18:32 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 1Z8CfP-0006lU-Iu for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 21:18:31 +0200 Original-Received: from localhost ([::1]:57172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CfO-00007W-TG for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 15:18:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CfC-00007P-Iu for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:18:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8CfB-00036f-KI for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:18:18 -0400 Original-Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:34043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8CfB-00034Q-8o for help-gnu-emacs@gnu.org; Thu, 25 Jun 2015 15:18:17 -0400 Original-Received: by lbnk3 with SMTP id k3so51581487lbn.1 for ; Thu, 25 Jun 2015 12:18:16 -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=lLijKh6K0XYwZieP6BqAnzTiYduKW4dbRoFzui4l44E=; b=g/gCqsA+gOvra3J1FDqqYNFpdNjx+fpau0RtmiCZ8f5UyxKWF6PwG034CbAtarc1QP j6L+hGMjuYPFTVxNHNMAXvX+/2B4AdkJ7nuWIRDNHorEbnh2BtO3NiGZtcpFgi05ZDe0 HhoqJ+LzzVSiFF/7v9R8taYorsGWQ0F/8WTsZGPItQVUSCDe8+7T0ZZcM/s2VjpAvc9V 44DtYlU3T3TKQzCoCozhx3GtnxzuZsTJMaERenlwkwD6sam6tTskXo1TVmlnmVatN/+t bPIoyV/RwIWbpv9KTm4nbCeDGmhApU9vTbVkQBinfvoPh018seNOmuoV7ocb/YAYo26c euHQ== X-Received: by 10.152.27.197 with SMTP id v5mr13429962lag.64.1435259896573; Thu, 25 Jun 2015 12:18:16 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Thu, 25 Jun 2015 12:18:16 -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::229 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:105178 Archived-At: I've finally managed to tailor a solution that finally works as expected (and without code duplication): (setq-default minibuffer-line-format '((:eval (let* ((date-string (propertize (format-time-string "%Y.%m.%d") 'face 'minibuffer-line-date)) (weekday-string (propertize (format-time-string "%A") 'face 'minibuffer-line-weekday)) (time-string (propertize (format-time-string "%R") 'face 'minibuffer-line-time)) (right-string-list (list date-string " " weekday-string " " time-string)) (right-string (apply #'concat right-string-list)) (pad-string (propertize " " 'display `((space :align-to (- right right-fringe ,(length right-string))))))) (list pad-string right-string-list)))))