OK, well, hit me then, what should the definition be? This is for practical use, how many days till my date with Sandra Bullock - because maybe some things need to be arranged? ... No? Okay, bad exam
Maybe you should first define what is meant with `days-from-date'. I like that type of functions and I was looking for that in pure Emacs lisp, and found the same what you already implemented that it
How do you suggest I improve the function? ;;; -*- lexical-binding: t -*- ;;; ;;; this file: ;;; http://user.it.uu.se/~embe8573/emacs-init/time-cmp.el ;;; https://dataswamp.org/~incal/emacs-init/tim
Great. I use PostgreSQL for that, and there is difference one day: (defun days-from (from-date to-date) "Returns days passed from FROM-DATE to TO-DATE in format YYYY-MM-DD." (string-to-number (string
(defun percent (n d) (let ((pct (* 100 (/ n d 1.0)))) (message "%.1f%%" pct))) (percent 13973 204612) ; 6.8% One thing I don't understand tho - from the `format' docstring For %e and %f sequences, th
That is one that I used, then I have amplified it by the estimated number of Ubuntu users and used the percentage of Emacs users in popularity contest to find about estimated number of total Emacs us
Easy customisation. Cool. In it correct to use "face inferior-vshift display" in the code below? (defun subinf-font-lock (pos) (unless (or (memq (get-text-property pos 'face) '(font-lock-constant-fac
Am trying to use more let constructs. The problem is that the elements in tlist is not being updated with the new values. (defun timgrid (tstr tend tpd) (let* ( (timu tstr) (tfr tstr) (tlist (list ts
Maybe. But I have got a feeling that is unused search. What I was meaning but did not express it that search should be exposed to public. I am not sure if that namazu search engine provides good rele
Thank you. I had to use `apply' when passing `args' that I get from &rest Now I have made the function better that takes input as string, processes outside command and returns output as string: (defu
I have actually forgot that I have already transitioned Common Lisp to Emacs Lisp to convert DMS to DD coordinates. (defun geo/dms-parse (dms) (let* ((cardinal (cond ((string-match "N" dms) "N") ((st
Is this any good? (defun wall-clock-time (h1 m1 s1 h2 m2 s2) (let*((d 08) ; bonus points if anyone knows what happened then (m 05) (y 1978) (total-seconds-1 (float-time (encode-time s1 m1 h1 d m y)))
Thank you for the comments :) The Introduction doesn't even mention that... I will. No reference to setf in the Introduction, and it's buried under tons of reference in the Reference... Thank you aga
So you're back to using `setcar` :-( Those date/time thingies are indeed rather annoying to construct. copy-sequence + in-place modification is probably the best you can use, indeed :-( You're using