all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Negative zero equals minus one?
@ 2015-02-09 18:13 Marcin Borkowski
  0 siblings, 0 replies; only message in thread
From: Marcin Borkowski @ 2015-02-09 18:13 UTC (permalink / raw
  To: Help Gnu Emacs mailing list

Hi there,

Emacs just made my day.

(defun print-prefix-arg (arg)
  "Print the raw prefix argument and its numeric value in the echo area."
  (interactive "P")
  (message "Raw: %s, numeric: %s." arg (prefix-numeric-value arg)))

C-u - 0 M-x print-prefix-arg

Raw: -, numeric: -1.

:-)

(It is not irrational - see simple.el, function `digit-argument' and the
comment therein.  But it's still funny.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-09 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 18:13 Negative zero equals minus one? Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.