From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 15:41:31 2012 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)))) From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 22:42:15 2012 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. From debbugs-submit-bounces@debbugs.gnu.org Sat May 26 09:26:03 2012 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 To: "Aaron S. Hawley" Subject: Re: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil 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-Debbugs-Envelope-To: 11560 Cc: 11560@debbugs.gnu.org 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 debbugs-submit-bounces@debbugs.gnu.org Sat May 26 17:42:45 2012 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: Subject: Re: bug#11560: 24.0.97; [PATCH] forward-same-syntax: wrong-type-argument number-or-marker-p nil From: "Aaron S. Hawley" To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11560 Cc: 11560@debbugs.gnu.org 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. From unknown Sat Sep 06 02:32:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Jun 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator