# HG changeset patch # User Gerd Moellmann # Date 935263894 0 # Node ID bf9932dab55643e97a11201c9ad0c9f9adc0d95a # Parent 2f3ad0a21be5b41a496a54aecce40bb110539945 (backward-kill-paragraph): Don't move point into mini-buffer prompt. (backward-kill-sentence): Ditto. diff -r 2f3ad0a21be5 -r bf9932dab556 lisp/textmodes/paragraphs.el --- a/lisp/textmodes/paragraphs.el Sat Aug 21 19:31:13 1999 +0000 +++ b/lisp/textmodes/paragraphs.el Sat Aug 21 19:31:34 1999 +0000 @@ -323,7 +323,12 @@ With arg N, kill back to Nth start of paragraph; negative arg -N means kill forward to Nth end of paragraph." (interactive "*p") - (kill-region (point) (progn (backward-paragraph arg) (point)))) + (let ((start (point)) + (end (progn (backward-paragraph arg) (point))) + (prompt-end (minibuffer-prompt-end))) + (when (> end prompt-end) + (goto-char (setq end prompt-end))) + (kill-region start end))) (defun transpose-paragraphs (arg) "Interchange this (or next) paragraph with previous one." @@ -393,7 +398,12 @@ "Kill back from point to start of sentence. With arg, repeat, or kill forward to Nth end of sentence if negative arg -N." (interactive "*p") - (kill-region (point) (progn (backward-sentence arg) (point)))) + (let ((start (point)) + (end (progn (backward-sentence arg) (point))) + (prompt-end (minibuffer-prompt-end))) + (when (> end prompt-end) + (goto-char (setq end prompt-end))) + (kill-region start end))) (defun mark-end-of-sentence (arg) "Put mark at end of sentence. Arg works as in `forward-sentence'."