From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: jai-bholeki Newsgroups: gmane.emacs.help Subject: Re: Elisp: Using message to print two numbers Date: Sun, 01 Nov 2020 21:41:06 +0000 Message-ID: References: <20201101212022.GB6001@tuxteam.de> Reply-To: jai-bholeki Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26338"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: "tomas@tuxteam.de" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 01 22:42:02 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZL6u-0006kJ-Kj for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 22:42:00 +0100 Original-Received: from localhost ([::1]:48576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZL6t-0001M2-Mm for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 16:41:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZL6J-0001Ln-OS for help-gnu-emacs@gnu.org; Sun, 01 Nov 2020 16:41:23 -0500 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:43108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZL6G-0001xU-TU for help-gnu-emacs@gnu.org; Sun, 01 Nov 2020 16:41:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1604266877; bh=IGW4BSe8EI2YfmrQGlCMU/ghtygRSOwJ4UqzJW6Wip0=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=hy/wFJHTAkQqqAp2l+VC+mCxBbTnL9z0PkOpMH3E1DG8zWYHXhuLf89snuNUMQ6yk DZmlhqj3VP1LZbOxQ9QM1hnd7AhkvmstUF+NzH2zhNN5M02c30Obxcp8qgrtY3Zhc6 DgU5s6Xknl99SHOvhbQeviJ1q6Avnr9t7ZnWB7fY= In-Reply-To: <20201101212022.GB6001@tuxteam.de> Received-SPF: pass client-ip=185.70.40.130; envelope-from=jai-bholeki@protonmail.com; helo=mail-40130.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/01 16:41:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124917 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Sunday, 1 November 2020 22:20, wrote: > On Sun, Nov 01, 2020 at 08:46:19PM +0000, jai-bholeki via Users list for = the GNU Emacs text editor wrote: > > > Any ideas on how to print two integers 'beg' and 'end' > > Have used the following to no avail > > (message "Prg-Bounds: %d %d" Beg End) > > "to no avail" isn't an Emacs error message ;-P You will in a minute ;) > > Uh. I mean: this works for me, put into the right context > (the variables Beg and End have to be bound to two integers > and some other things). For me: > > (let ((Beg 15) > (End 16)) > (message "Prog-Bounds: %d %d" Beg End)) > > issues the message > > Prog-Bounds: 15 16 > > What happens in your case? Problem starts when making a subtraction (let* ( (Beg 20) (End 30) (Length (- Beg End)) (message "Region: (%d, %d) %s %d" Beg End "Length" Length) ) ) > > Cheers > > - t