From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aaron S. Hawley" Newsgroups: gmane.emacs.bugs Subject: bug#13994: End of buffer error for forward-sexp Date: Wed, 24 Apr 2013 17:35:28 -0400 Message-ID: References: <60DF8CA8098A46B1A6B5F6E815AC8CE4@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1366839361 1016 80.91.229.3 (24 Apr 2013 21:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2013 21:36:01 +0000 (UTC) Cc: 13994@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 23:36:05 2013 Return-path: Envelope-to: geb-bug-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 1UV7MC-0005iB-67 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 23:36:04 +0200 Original-Received: from localhost ([::1]:32774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV7MB-0002AK-MW for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 17:36:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV7M7-0002A6-Ri for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 17:36:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV7M6-0005Nl-7l for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 17:35:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV7M6-0005NY-3b for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 17:35:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UV7Qz-0004dB-Kc for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 17:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Aaron S. Hawley" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2013 21:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13994 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13994-submit@debbugs.gnu.org id=B13994.136683963517734 (code B ref 13994); Wed, 24 Apr 2013 21:41:01 +0000 Original-Received: (at 13994) by debbugs.gnu.org; 24 Apr 2013 21:40:35 +0000 Original-Received: from localhost ([127.0.0.1]:41671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV7QY-0004bz-Hq for submit@debbugs.gnu.org; Wed, 24 Apr 2013 17:40:34 -0400 Original-Received: from mail-qc0-f175.google.com ([209.85.216.175]:49787) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV7QX-0004bp-ML for 13994@debbugs.gnu.org; Wed, 24 Apr 2013 17:40:34 -0400 Original-Received: by mail-qc0-f175.google.com with SMTP id j3so1201601qcs.20 for <13994@debbugs.gnu.org>; Wed, 24 Apr 2013 14:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=oQiLx4pgFDJ4lDZtYBUz1/jgqhBLWS5PW1tFsuvVPxg=; b=EotTQqCgE2S3a+IAxPIF57oh4txN4X8O0B9u58E3Q/6PZ4L2Y9d6YSq6Lff8+duDVf Gof5/MOCsfsO/sWLaUaYRlo9DTEqPs2VV1AOP7nGI9Wo4hgOwiMq+k0hj7PTRvRburvZ Yih6dyGCyX3Nh3wbIrS3HwY0SoD9W4Ludcx3VCPMDFzZ3SmksE808J1YWERyLw/s/5+M c265y+e5l8Up7CT+5Hm6wpx9n0cumzX9HCwz6RfCveP5+PelmTT8WxJwQ0YCqN56Siu/ 1hPIPGtyXoaykD7Hsq3LmL1krGcF4VIPdR2kgFRmdGpf7VZHHebjLC9NLoYaepk/aKmv FfKw== X-Received: by 10.229.82.211 with SMTP id c19mr1973743qcl.75.1366839328823; Wed, 24 Apr 2013 14:35:28 -0700 (PDT) Original-Received: by 10.49.13.41 with HTTP; Wed, 24 Apr 2013 14:35:28 -0700 (PDT) In-Reply-To: <60DF8CA8098A46B1A6B5F6E815AC8CE4@us.oracle.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73656 Archived-At: > Now everytime some code does (when (looking-at "\"") (forward-sexp 1)) or > whatever it will need to be fixed to wrap it in `ignore-errors' or otherwise > treat the `eobp' case? What I'm finding in my small sample is that most code already has ignore-errors or is finding the end or beginning of a buffer with a different Emacs primitive. In other words, no code changes! > What's the point? If you have some code that needs to raise an error when > `forward-sexp' reaches eob, that's easy enough to do, no? I wouldn't have sent a patch if I didn't think it should be the default. > Not to mention that the code for `forward-sexp' explicitly takes point to eob > when `scan-sexps' returns nil. IOW, that behavior is presumably by design. I don't believe my patch is changing that behavior. > And not to mention that it calls `forward-sexp-function', if non-nil, to do > everything, in which case (depending on where you would place your call to > `error') you might be changing the meaning/behavior for its code as well, if it > reaches eob. I'm pretty sure my patch doesn't take anything away from the user's ability to entirely redefine forward-sexp by setting forward-sexp-function.