From unknown Sat Sep 06 02:32:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil Resent-From: "Aaron S. Hawley" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 May 2012 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 11560@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.133797489121755 (code B ref -1); Fri, 25 May 2012 19:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2012 19:41:31 +0000 Received: from localhost ([127.0.0.1]:43555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY0OB-0005eq-LF for submit@debbugs.gnu.org; Fri, 25 May 2012 15:41:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50515) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY0O9-0005ed-B5 for submit@debbugs.gnu.org; Fri, 25 May 2012 15:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SY0N2-0003xb-Kv for submit@debbugs.gnu.org; Fri, 25 May 2012 15:40:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0N2-0003xV-FC for submit@debbugs.gnu.org; Fri, 25 May 2012 15:40:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0N0-0004sz-Nk for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SY0My-0003wQ-St for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:18 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:33731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0My-0003vp-Jf for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:16 -0400 Received: by bkcjm19 with SMTP id jm19so1235787bkc.0 for ; Fri, 25 May 2012 12:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Mn8H5MoZZlUq5qn8UXAmTmk+2YVl37VT8yUuhFZwuvo=; b=kFw/T3dKcNQtr+512Q1jXRBfCM/lOU1nzkYNgIg2wJpAvhzLEPZsOYM53G9L0VTOjt 9aap/bRit6p2gK79PuxmxWCZLleljf2BbE1B0uqeihFTNqHn0BUj+Q+Z7QjocVaRrHPg DaEq1pKJdkLRpIhV3RKXTYW/tUkrh7xAXvoEJTwroqyHfjGXsxVrIFROvP3FR9dxpaew hKkvcboWmxH75R9ippGeNr7FUyx+XRXxOFNAvaXJ1cRwOsq54ZKKzDW/rRIOVnfm+5Wf AFNV266ZFiaHOb4k5WDtq6Hqgq+aXQtFUzNkhe8CIfRGLgGJe2UH3CmdJTTrw5Ab1W3S jkLQ== MIME-Version: 1.0 Received: by 10.205.132.13 with SMTP id hs13mr38090bkc.78.1337974813909; Fri, 25 May 2012 12:40:13 -0700 (PDT) Received: by 10.204.35.145 with HTTP; Fri, 25 May 2012 12:40:13 -0700 (PDT) Date: Fri, 25 May 2012 15:40:13 -0400 Message-ID: From: "Aaron S. Hawley" Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) [I'm using a pretest, but this isn't a regression. Applying the fix in 24.2 is fine with me.] Reproduce: M-x load-library thingatpt M-: (forward-same-syntax) gives Lisp error: (wrong-type-argument number-or-marker-p nil) Thanks for Emacs, /a 2012-05-25 Aaron S. Hawley * thingatpt.el (forward-same-syntax): Calling as a function in Lisp with no argument gives error "wrong-type-argument number-or-marker-p nil" from `while'. --- thingatpt.el 2012-04-07 23:03:02.000000000 -0400 +++ thingatpt.el 2012-05-25 12:33:28.817991100 -0400 @@ -455,8 +455,9 @@ (defun forward-same-syntax (&optional arg) "Move point past all characters with the same syntax class. With prefix argument ARG, do it ARG times if positive, or move backwards ARG times if negative." (interactive "p") + (or arg (setq arg 1)) (while (< arg 0) (skip-syntax-backward (char-to-string (char-syntax (char-before)))) From unknown Sat Sep 06 02:32:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Aaron S. Hawley" Subject: bug#11560: closed (Re: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil) Message-ID: References: X-Gnu-PR-Message: they-closed 11560 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 11560@debbugs.gnu.org Date: Sat, 26 May 2012 02:43:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1338000183-25836-1" This is a multi-part message in MIME format... ------------=_1338000183-25836-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or= -marker-p nil which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11560@debbugs.gnu.org. --=20 11560: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11560 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1338000183-25836-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11560-done) by debbugs.gnu.org; 26 May 2012 02:42:15 +0000 Received: from localhost ([127.0.0.1]:43772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY6xL-0006he-7D for submit@debbugs.gnu.org; Fri, 25 May 2012 22:42:15 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58165 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY6xI-0006hX-Fn for 11560-done@debbugs.gnu.org; Fri, 25 May 2012 22:42:13 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SY6wF-0005ut-P4; Fri, 25 May 2012 22:41:07 -0400 From: Glenn Morris To: 11560-done@debbugs.gnu.org Subject: Re: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil References: X-Spook: Geraldton data haven Hamas Bellcore fundamentalist X-Ran: `3GH&Jf;,luGL&~Oz3hp&odB"x$>N7f/I&z!2l{f?u~rW{p"KL|H>&E9K(Dx% (Aaron S. Hawley's message of "Fri, 25 May 2012 15:40:13 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11560-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Version: 24.2 Thanks; applied. ------------=_1338000183-25836-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 May 2012 19:41:31 +0000 Received: from localhost ([127.0.0.1]:43555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY0OB-0005eq-LF for submit@debbugs.gnu.org; Fri, 25 May 2012 15:41:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50515) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SY0O9-0005ed-B5 for submit@debbugs.gnu.org; Fri, 25 May 2012 15:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SY0N2-0003xb-Kv for submit@debbugs.gnu.org; Fri, 25 May 2012 15:40:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0N2-0003xV-FC for submit@debbugs.gnu.org; Fri, 25 May 2012 15:40:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0N0-0004sz-Nk for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SY0My-0003wQ-St for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:18 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:33731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0My-0003vp-Jf for bug-gnu-emacs@gnu.org; Fri, 25 May 2012 15:40:16 -0400 Received: by bkcjm19 with SMTP id jm19so1235787bkc.0 for ; Fri, 25 May 2012 12:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Mn8H5MoZZlUq5qn8UXAmTmk+2YVl37VT8yUuhFZwuvo=; b=kFw/T3dKcNQtr+512Q1jXRBfCM/lOU1nzkYNgIg2wJpAvhzLEPZsOYM53G9L0VTOjt 9aap/bRit6p2gK79PuxmxWCZLleljf2BbE1B0uqeihFTNqHn0BUj+Q+Z7QjocVaRrHPg DaEq1pKJdkLRpIhV3RKXTYW/tUkrh7xAXvoEJTwroqyHfjGXsxVrIFROvP3FR9dxpaew hKkvcboWmxH75R9ippGeNr7FUyx+XRXxOFNAvaXJ1cRwOsq54ZKKzDW/rRIOVnfm+5Wf AFNV266ZFiaHOb4k5WDtq6Hqgq+aXQtFUzNkhe8CIfRGLgGJe2UH3CmdJTTrw5Ab1W3S jkLQ== MIME-Version: 1.0 Received: by 10.205.132.13 with SMTP id hs13mr38090bkc.78.1337974813909; Fri, 25 May 2012 12:40:13 -0700 (PDT) Received: by 10.204.35.145 with HTTP; Fri, 25 May 2012 12:40:13 -0700 (PDT) Date: Fri, 25 May 2012 15:40:13 -0400 Message-ID: Subject: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil From: "Aaron S. Hawley" To: bug-gnu-emacs Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) [I'm using a pretest, but this isn't a regression. Applying the fix in 24.2 is fine with me.] Reproduce: M-x load-library thingatpt M-: (forward-same-syntax) gives Lisp error: (wrong-type-argument number-or-marker-p nil) Thanks for Emacs, /a 2012-05-25 Aaron S. Hawley * thingatpt.el (forward-same-syntax): Calling as a function in Lisp with no argument gives error "wrong-type-argument number-or-marker-p nil" from `while'. --- thingatpt.el 2012-04-07 23:03:02.000000000 -0400 +++ thingatpt.el 2012-05-25 12:33:28.817991100 -0400 @@ -455,8 +455,9 @@ (defun forward-same-syntax (&optional arg) "Move point past all characters with the same syntax class. With prefix argument ARG, do it ARG times if positive, or move backwards ARG times if negative." (interactive "p") + (or arg (setq arg 1)) (while (< arg 0) (skip-syntax-backward (char-to-string (char-syntax (char-before)))) ------------=_1338000183-25836-1-- From unknown Sat Sep 06 02:32:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 May 2012 13:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Aaron S. Hawley" Cc: 11560@debbugs.gnu.org Received: via spool by 11560-submit@debbugs.gnu.org id=B11560.133803876319252 (code B ref 11560); Sat, 26 May 2012 13:27:02 +0000 Received: (at 11560) by debbugs.gnu.org; 26 May 2012 13:26:03 +0000 Received: from localhost ([127.0.0.1]:44051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYH0M-00050T-NB for submit@debbugs.gnu.org; Sat, 26 May 2012 09:26:02 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34279) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYH01-0004zq-2Q for 11560@debbugs.gnu.org; Sat, 26 May 2012 09:25:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCpYd/2dsb2JhbABEsEiDSYEIghYBBVYjEAs0EhQYDSSIIboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="182615910" Received: from 76-10-150-29.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 May 2012 09:24:29 -0400 Received: by pastel.home (Postfix, from userid 20848) id 0A0A058ABA; Sat, 26 May 2012 09:24:28 -0400 (EDT) From: Stefan Monnier Message-ID: References: Date: Sat, 26 May 2012 09:24:28 -0400 In-Reply-To: (Aaron S. Hawley's message of "Fri, 25 May 2012 15:40:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > (defun forward-same-syntax (&optional arg) > "Move point past all characters with the same syntax class. > With prefix argument ARG, do it ARG times if positive, or move > backwards ARG times if negative." > (interactive "p") > + (or arg (setq arg 1)) Actually, unless (forward-same-syntax) used to work, the better fix is to make the argument non-optional. Stefan From unknown Sat Sep 06 02:32:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil Resent-From: "Aaron S. Hawley" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 May 2012 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Monnier Cc: 11560@debbugs.gnu.org Received: via spool by 11560-submit@debbugs.gnu.org id=B11560.133806856630741 (code B ref 11560); Sat, 26 May 2012 21:43:01 +0000 Received: (at 11560) by debbugs.gnu.org; 26 May 2012 21:42:46 +0000 Received: from localhost ([127.0.0.1]:44534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYOl3-0007zm-ID for submit@debbugs.gnu.org; Sat, 26 May 2012 17:42:45 -0400 Received: from mail-bk0-f44.google.com ([209.85.214.44]:42534) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SYOl1-0007zZ-7H for 11560@debbugs.gnu.org; Sat, 26 May 2012 17:42:43 -0400 Received: by bkty8 with SMTP id y8so1432813bkt.3 for <11560@debbugs.gnu.org>; Sat, 26 May 2012 14:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6Fuz/d9ArBxoqWR+69bhEGY+CNJEte3LnqBDl3mCMsc=; b=gFFVyyIAH8LH+3r1vVGhtgVinzi0A2c1CVBl+2u60dM7XoL8rbkA3fsWDcwsNnSx66 7rYI3OCTA0NHhC+qKa5mDjLFVrsbUxa1eiYUb6fzW+pKDwKI9ZpSudFQcoCh9XTro7Op P07U+lvkaTD/U3KDYyR+OYz2p1iwTr0j000zasTD0IRzPJwmBQUqddrWolL17yIlvEeL lLjwkDS0GVvlpjZrgXjwqw8T8H01bl6/ptc4bgdk3zf+Wt7ZrlgGXpH7yFRVtxd/P71s 1v3Ij6PVm7uNezeKslBhHnUZqoF6zzL2NpjA9BHH70f9EzF7wApkFTcu6I98oqmRMaeF M3PQ== MIME-Version: 1.0 Received: by 10.204.154.80 with SMTP id n16mr1417444bkw.112.1338068489147; Sat, 26 May 2012 14:41:29 -0700 (PDT) Received: by 10.204.35.145 with HTTP; Sat, 26 May 2012 14:41:29 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 May 2012 17:41:29 -0400 Message-ID: From: "Aaron S. Hawley" Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 5/26/12, Stefan Monnier wrote: >> (defun forward-same-syntax (&optional arg) >> "Move point past all characters with the same syntax class. >> With prefix argument ARG, do it ARG times if positive, or move >> backwards ARG times if negative." >> (interactive "p") >> + (or arg (setq arg 1)) > > Actually, unless (forward-same-syntax) used to work, the better fix is > to make the argument non-optional. I considered that, but assumed it's better to keep it consistent with the rest of the forward-* functions in Emacs.