From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#66696: 29.1; "A bug in the function debug." Date: Sun, 05 Nov 2023 07:00:33 +0100 Message-ID: References: <556885424.775162.1698086427787.ref@mail.yahoo.com> <556885424.775162.1698086427787@mail.yahoo.com> 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="12997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66696@debbugs.gnu.org To: Lewis Creary Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 05 07:01:49 2023 Return-path: Envelope-to: geb-bug-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 1qzWCj-0003H1-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Nov 2023 07:01:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzWCT-0006Vj-U8; Sun, 05 Nov 2023 01:01:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzWCM-0006Uy-22 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:01:26 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzWCL-0000Av-Pf for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:01:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzWCw-0005v1-BR for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2023 06:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66696 X-GNU-PR-Package: emacs Original-Received: via spool by 66696-submit@debbugs.gnu.org id=B66696.169916408222670 (code B ref 66696); Sun, 05 Nov 2023 06:02:02 +0000 Original-Received: (at 66696) by debbugs.gnu.org; 5 Nov 2023 06:01:22 +0000 Original-Received: from localhost ([127.0.0.1]:36018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWCI-0005ta-Gq for submit@debbugs.gnu.org; Sun, 05 Nov 2023 01:01:22 -0500 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:49571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWCF-0005tM-GE for 66696@debbugs.gnu.org; Sun, 05 Nov 2023 01:01:20 -0500 Original-Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2c6b30aca06so45435731fa.3 for <66696@debbugs.gnu.org>; Sat, 04 Nov 2023 23:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699164036; x=1699768836; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ifzFiZwlVirHqmXqJXUNPcOiNq7fAtrqHaoGtlNhbeQ=; b=MY7e+BnOD2x47eABg55GyeRMOUHSv2E4D5OWzCSDgbaOaGRCX6A3a95hXDsdJ6GyI5 oFgHXJQm5DMG5H8qs+3USaDe1Cs0iTOeLo2G5x3AxyCwY0cBmrV8rZhTbnlFVln0p+cY rxgVw6vcf5yT1tqO8xv0KQZ4MSctLGsXrTS4xLm++AYqhTb1bIjx5WLkyWTUGYboyLxy YQKXWZvA0aJsmQFmJj1x1XFu8VZMPwireItPE48FoUwL6R3nHzeR7dBRQfx5qsGxEkgh SUIsjdEN6S7XRa3jNhqykOj45hribNAc4FFaA+BORuaTMyAvq6LQKGK4nvRTLyzrMlXE l9Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699164036; x=1699768836; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ifzFiZwlVirHqmXqJXUNPcOiNq7fAtrqHaoGtlNhbeQ=; b=vNQSVqMeXGHEDzICeHKDUrt1SUj9EltCF1NFztgp/XFl/lOH5x1iGwtSOm5BqMIMcA 7MN+FtSpm93XEH9B2EXQOTLqm+XDuxDh+mX1my8V3m3WGrj0u6hSNzg6ZzqBPty4HL0/ L/JUmildWeSnVwQVk+X3z4egqk1ld7uS4MAzN+BPtOtXzf+hy7uEG/WhuqdkNeSfkd83 z5x95qP4TTC+W0HAPSOdyrSt6tt+LNtwOS9iNE3MUJX0NoxhRBkhIoEh6rLPKVXB40qF OiIC3bxHn4u/ujwNqacE0TWJkY51TXu+SGWIISqYwLjO55S/AVCaHXCrp7586eSUUQzU 11yA== X-Gm-Message-State: AOJu0Yxjtum/50ZcwmzYjqQAXtKSoG1Q1hIR0U2hJ8ShmZk4Z6oZHhvY pg3YcxN2JGoOg0v46TlGx3FA+i5rcn8= X-Google-Smtp-Source: AGHT+IHMUg8MEFnQszNhYH7qS9C/o+rUU1hDyQ64oo8HS+nzz+gVXVLxGSXWbyD/DFaDgB2yxNnqYA== X-Received: by 2002:a05:651c:333:b0:2c5:1542:57e4 with SMTP id b19-20020a05651c033300b002c5154257e4mr19015155ljp.31.1699164035805; Sat, 04 Nov 2023 23:00:35 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a9c5.dip0.t-ipconnect.de. [79.227.169.197]) by smtp.gmail.com with ESMTPSA id j8-20020a05600c1c0800b004063977eccesm8011598wms.42.2023.11.04.23.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 23:00:35 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Mon, 23 Oct 2023 21:11:55 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273804 Archived-At: Gerd M=C3=B6llmann writes: > Lewis Creary writes: > > (Please reply to all, so that your mails get to the bug tracker.) > >>>> Did you get your parentheses right? The above ')' is the end of the wh= ile. >> >> I checked, and the extra parenthesis is in my bug report, but not in the= code I tried to run. I'd be interested to know if you can reproduce my >> problem in emacs lisp, with correct parentheses. >> >> -- Lew Creary > > 1: (while ((and (>=3D dividend 0) (not stop-sw))) > 2: (setq dividend (/ dividend 2) > 3: rmdr-list (append (list (% dividend 2)) rmdr-list) ) > > You write in the bug report that you start with dividend being 5, and > you expect the first element of the list to be 1, but it is 0. > > When you look at line 2, dividend is divided by 2, which results in 5 / > 2 =3D 2, because this is integer division. In line 3, you compute the re= st > of dividend (which is now 2) when divided by 2, which results in 0. > > So, this looks correct. No further reaction expected at this point, so I'm closing this.=20