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: Sun, 29 Jan 2017 20:46:06 +0900 Message-ID: <87bmuqum0x.fsf@calancha-pc> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485690446 31692 195.159.176.226 (29 Jan 2017 11:47:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2017 11:47:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Tino Calancha To: 25571@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 12:47:22 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 1cXnwy-0007Be-47 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2017 12:47:16 +0100 Original-Received: from localhost ([::1]:54916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXnx1-0004Ls-PQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2017 06:47:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXnwn-0004LZ-Lu for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 06:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXnwk-0001kK-97 for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 06:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXnwk-0001kG-6S for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 06:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cXnwj-0004qf-Q1 for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 06:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jan 2017 11:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25571 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25571-submit@debbugs.gnu.org id=B25571.148569037818572 (code B ref 25571); Sun, 29 Jan 2017 11:47:01 +0000 Original-Received: (at 25571) by debbugs.gnu.org; 29 Jan 2017 11:46:18 +0000 Original-Received: from localhost ([127.0.0.1]:49738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXnw2-0004pU-Lr for submit@debbugs.gnu.org; Sun, 29 Jan 2017 06:46:18 -0500 Original-Received: from mail-pf0-f170.google.com ([209.85.192.170]:33472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXnw1-0004pF-9b for 25571@debbugs.gnu.org; Sun, 29 Jan 2017 06:46:17 -0500 Original-Received: by mail-pf0-f170.google.com with SMTP id y143so83798598pfb.0 for <25571@debbugs.gnu.org>; Sun, 29 Jan 2017 03:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=oqLDWlhLOd3ka/5jhm50G6MYb/T0/a6iFwOw46WzWMY=; b=NO6LAd7JJ5R22r0Mofc6M/A7VE62Yd9rEW4nXFjVrAUWBHxvQfYm/5rm/lVCd08BR9 fSL/wPYkpQPhhw19HJZPeNJaK2Yube6tU3c+ypms7KTQUhZYD9etv9fyyuzq/OFaohjO /9+ngt13hiW2eeYopQZFD85vb1nMPPxUeOmPU3FTeU6nULTfXC54EPdy4BG2kxSPSJJt Dvu+HrjYHgA/dEdpuJUlJ4ivo2dyXf+eoUQ3cAF4OVEcCvuHfgc70xb4IEkBXuAGSa+p H86fTIBAh6v/Sz/7z0M5alZBfEYZ1lGsLlOzE9RKanXUxfzsFb2EJwbpe7ZJaTbe1PZ5 DOaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=oqLDWlhLOd3ka/5jhm50G6MYb/T0/a6iFwOw46WzWMY=; b=OijVU7SbOgnh8tGf/pqK5fZ7ya6pIVXW+SEBttQYSfcRROH1Vxvs+SA/42HNeDjFV6 1p7qYFKe9M45a/maqwQqmHtnzVY3IVFj4djViAe3qngId70mEDyWYHqCrOcxn9T1vFbT 0mMIs23BgRVZU+y4N2A6yQzzDccweeuHXyHl30WqY+OCfXUsaRymj+oYImSd6auNlY4x 4gbuCUgwbsqtcb+IbQHOZTBoXdXwQmGGf4VhkDmXUtw03hpMvzdBdd67LYAT3kGwsh35 MzicZW5Ik9U5c9M2vr+FiEySEeRwy52Gmo+9r6DUGJmTA37ROxI/dcr1rMQ/Eku5BlRH bYMQ== X-Gm-Message-State: AIkVDXJfX/K2c6+i453CY9Rbllg9p473iKyc8utp2vxqhv+0bSZHgUFoE0L/sHnitWD6XQ== X-Received: by 10.84.137.165 with SMTP id 34mr25110305pln.24.1485690371397; Sun, 29 Jan 2017 03:46:11 -0800 (PST) Original-Received: from calancha-pc (33.94.100.220.dy.bbexcite.jp. [220.100.94.33]) by smtp.gmail.com with ESMTPSA id l25sm24395848pfb.24.2017.01.29.03.46.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jan 2017 03:46:10 -0800 (PST) In-Reply-To: (Tino Calancha's message of "Sun, 29 Jan 2017 20:37:37 +0900 (JST)") 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:128751 Archived-At: 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 I forgot the receipt; do the following: < ; 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'.