From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15580: [PATCH] 24.3.50; subword-capitalize at the end of a buffer jumps to the beginning Date: Mon, 14 Oct 2013 15:25:17 -0400 Message-ID: References: <87y561obi5.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381840536 14192 80.91.229.3 (15 Oct 2013 12:35:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2013 12:35:36 +0000 (UTC) Cc: 15580-done@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 15 14:35:39 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 1VW3qa-0003o1-J8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 14:35:36 +0200 Original-Received: from localhost ([::1]:41663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3qa-00028l-7f for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 08:35:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3qE-0001qt-I7 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 08:35:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW3q4-00045Q-KU for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 08:35:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3q4-00043s-9n for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 08:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VW3q4-0004Lp-3D for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2013 08:35:04 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2013 12:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 15580@debbugs.gnu.org, monnier@IRO.UMontreal.CA, dima@secretsauce.net Original-Received: via spool by 15580-done@debbugs.gnu.org id=D15580.138184046316653 (code D ref 15580); Tue, 15 Oct 2013 12:35:03 +0000 Original-Received: (at 15580-done) by debbugs.gnu.org; 15 Oct 2013 12:34:23 +0000 Original-Received: from localhost ([127.0.0.1]:50597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW3pP-0004KW-9c for submit@debbugs.gnu.org; Tue, 15 Oct 2013 08:34:23 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:36960) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VW3pI-0004Jv-8H for 15580-done@debbugs.gnu.org; Tue, 15 Oct 2013 08:34:21 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r9FCYFUk017977; Tue, 15 Oct 2013 08:34:15 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0D28266162; Mon, 14 Oct 2013 15:25:17 -0400 (EDT) In-Reply-To: <87y561obi5.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 10 Oct 2013 00:01:22 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.5 X-NAI-Spam-Rules: 2 Rules triggered DATE_IN_PAST_12_24=0.5, RV4732=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4732> : inlines <145> : streams <1056272> : uri <1565975> X-NAI-Spam-Level: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:79267 Archived-At: > and uses the results of this search even if it failed. The attached > patch explicitly checks for search failure and exits the function in > that case. Thanks. I slightly simplified your patch (since re-search-forward already signal search-failed if the 3rd arg is nil) and installed it. Stefan PS: This is at least the second "tiny" patch you contributed, so you're on course to hit the limit of what we can accept without copyright paperwork. If you'd like to sign this paperwork already to avoid future delays, I can send you the needed forms.