From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Negative zero equals minus one? Date: Mon, 09 Feb 2015 19:13:11 +0100 Message-ID: <87lhk73qdk.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423505628 11448 80.91.229.3 (9 Feb 2015 18:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 18:13:48 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 09 19:13:48 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 1YKsq9-0001vW-7U for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 19:13:45 +0100 Original-Received: from localhost ([::1]:34391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKsq8-0004wk-CO for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Feb 2015 13:13:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKspr-0004su-8l for help-gnu-emacs@gnu.org; Mon, 09 Feb 2015 13:13:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKspo-0000e4-3T for help-gnu-emacs@gnu.org; Mon, 09 Feb 2015 13:13:27 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:56314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKspn-0000cb-Sf for help-gnu-emacs@gnu.org; Mon, 09 Feb 2015 13:13:24 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 30F184E1E4 for ; Mon, 9 Feb 2015 19:13:21 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Z7uXVk0BKaV for ; Mon, 9 Feb 2015 19:13:21 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 011A44E1E3 for ; Mon, 9 Feb 2015 19:13:20 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 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:102602 Archived-At: 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