unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* If clause depending on name of the day
@ 2012-04-03 19:16 Sven Bretfeld
  2012-04-03 19:32 ` Lars Ljung
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Bretfeld @ 2012-04-03 19:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all

Is it possible to have an if-condition that looks for the current day?
So that the then-expression does something different on Tuesday than on
Friday? 

This is not working:

 (if (string-equal 'current-time-string ".*Tue.*")
    (delete-other-windows)
  (split-window-horizontally))

Thanks for help

Sven

p.s. unnecessary to mention that I have only a weak knowledge of elisp.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-03 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.458.1333480607.20052.help-gnu-emacs@gnu.org>
2012-04-03 19:50 ` If clause depending on name of the day Pascal J. Bourguignon
2012-04-03 20:58   ` Sven Bretfeld
2012-04-03 19:16 Sven Bretfeld
2012-04-03 19:32 ` Lars Ljung
2012-04-03 19:57   ` Drew Adams
2012-04-03 20:05   ` PJ Weisberg
     [not found]   ` <mailman.462.1333483518.20052.help-gnu-emacs@gnu.org>
2012-04-03 21:03     ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).