From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#25571: 24.5; Check if there are hunks before kill or refine a hunk Date: Thu, 02 Feb 2017 22:34:30 +0900 Message-ID: <87mve47m3d.fsf@calancha-pc> References: <87bmuqum0x.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486043931 30397 195.159.176.226 (2 Feb 2017 13:58:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2017 13:58:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 25571-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 02 14:58:47 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZHuR-0007k7-1e for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Feb 2017 14:58:47 +0100 Original-Received: from localhost ([::1]:56781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZHuU-0003Jl-Um for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Feb 2017 08:58:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZHXV-0006v1-HU for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 08:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZHXS-0006gm-9c for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 08:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZHXS-0006gb-6l for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 08:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cZHXS-0004d2-25 for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2017 08:35:02 -0500 Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2017 13:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 25571 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 25571@debbugs.gnu.org, tino.calancha@gmail.com, tino.calancha@gmail.com Original-Received: via spool by 25571-done@debbugs.gnu.org id=D25571.148604248117750 (code D ref 25571); Thu, 02 Feb 2017 13:35:01 +0000 Original-Received: (at 25571-done) by debbugs.gnu.org; 2 Feb 2017 13:34:41 +0000 Original-Received: from localhost ([127.0.0.1]:53845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZHX7-0004cE-9d for submit@debbugs.gnu.org; Thu, 02 Feb 2017 08:34:41 -0500 Original-Received: from mail-pf0-f181.google.com ([209.85.192.181]:36216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZHX5-0004c0-Nd for 25571-done@debbugs.gnu.org; Thu, 02 Feb 2017 08:34:39 -0500 Original-Received: by mail-pf0-f181.google.com with SMTP id 189so5515040pfu.3 for <25571-done@debbugs.gnu.org>; Thu, 02 Feb 2017 05:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=AcWVB9GnSbQzIssiv6ODvyo+V/O/EmTx2vyLzGL3bL4=; b=CPEcMNLZxqYi/Ss71oKxxIfs/CYPJjFLoH85HZV9ZQM5DsLKMdFcOSR60sbCuR7TjT O6Sz5rZ/DgMfkFqOwHcGFpwHkLd/VpcBcXHNzLZtefO8iaaxhCCyTQwGdIsCTXQcQOAb Yah/IqX1kc4GBUbsiPENh92P6UKeIX/Uq0J36XOBKngZ69tgjLSJUjoDzxTko7uMTGpK rloLYv6kcMztCW9dye+rXfP8dzMdTq/oxxk/KctR6yVky587etsjCfxgmThHPZX9kq74 ngAy9IFN8tiOl635hMAp3xNg8WK/z/GMWuuURLSfJmleoMG40aU8DOPChdx9xCh8W4NZ BoCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AcWVB9GnSbQzIssiv6ODvyo+V/O/EmTx2vyLzGL3bL4=; b=peY7jkgjEPF2Yq7ZGGqUjaFXMyJtUVJ1EO71aqJ8fefSw2sLaAQyBDOVlH81ApOoNC o456ipXbsUUKcts+R5d1zuDJX7XZ6ewyvMHjlU2gOlex7rosnFnViq6VGCCUAtrfm1Gu XtWy3T5nNiNG0DXvHswCA618R5tQnm8P7rron8ew624ti11AQ75FKLusgiY4k++1G8h4 WHeuer5Zyxn8XsV/Tk4fiqh48FiJu9sikCJAB5z0W/1xMHNciglpVFaBGX9qSWMrSwtZ 9nEgioMFkXifNZvGWzBZGczEtWADUlqTo/6Sbv31cALFgDaDHzUpiMP0RaEPSwa2xUml VUBQ== X-Gm-Message-State: AIkVDXJlfx/1SICoPGqGWvPCWJghMo+R1dlQmZvREceiy27prKMH/4L+vDNGcFObpPdzcQ== X-Received: by 10.84.179.99 with SMTP id a90mr12505596plc.139.1486042473615; Thu, 02 Feb 2017 05:34:33 -0800 (PST) Original-Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id z77sm58749927pfk.47.2017.02.02.05.34.32 for <25571-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2017 05:34:33 -0800 (PST) In-Reply-To: <87bmuqum0x.fsf@calancha-pc> (Tino Calancha's message of "Sun, 29 Jan 2017 20:46:06 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128882 Archived-At: Tino Calancha writes: > Tino Calancha writes: > >> emacs -Q: >> ; Put following content in a buffer in diff-mode: >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; START >> diff --git a/a b/a >> index 184cbf6..d2d9a24 100644 >> --- a/a >> +++ b/a >> @@ -1,2 +1,2 @@ >> -I have a foo in my bar. >> +I have a qux in my bar. >> Me too. >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; END > < ; Go to beginning of buffer > M-n M-k > M-n ; Shows: 'No next hunk'. > M-k ; Shows: "Can't find the beginning of the file". > ;; It would be more clear a message like: 'No more hunks'. Push fix to master branch as commit a362b56b51f49963dbb63cd318967bca9b9fef74