From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.bugs Subject: bug#10841: 24.0.92; Add field text property to ERC prompt Date: Sat, 18 Feb 2012 21:56:16 +0100 Message-ID: <8639a7c13j.fsf@dogan.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1329598630 29856 80.91.229.3 (18 Feb 2012 20:57:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2012 20:57:10 +0000 (UTC) To: 10841@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 21:57:10 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RyrL9-0003EA-6o for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 21:57:07 +0100 Original-Received: from localhost ([::1]:53403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrL8-0003NT-II for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 15:57:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrL4-0003NA-Ky for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:57:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyrL3-0007Pb-Mp for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:57:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrL3-0007PR-Ji for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RyrN0-00088w-13 for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Deniz Dogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Feb 2012 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132959874031293 (code B ref -1); Sat, 18 Feb 2012 20:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2012 20:59:00 +0000 Original-Received: from localhost ([127.0.0.1]:44957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyrMx-00088f-FE for submit@debbugs.gnu.org; Sat, 18 Feb 2012 15:59:00 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51179) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyrMu-00088T-St for submit@debbugs.gnu.org; Sat, 18 Feb 2012 15:58:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyrKr-0007Nk-Rl for submit@debbugs.gnu.org; Sat, 18 Feb 2012 15:56:50 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:35222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrKr-0007Nf-QL for submit@debbugs.gnu.org; Sat, 18 Feb 2012 15:56:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrKq-0003Mr-Ja for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:56:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyrKp-0007NL-HJ for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:56:48 -0500 Original-Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:59197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyrKp-0007NF-8b for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 15:56:47 -0500 Original-Received: from c80-216-107-103.bredband.comhem.se ([80.216.107.103]:49312 helo=EKATERINA) by ch-smtp05.sth.basefarm.net with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1RyrKW-0000hX-Gn for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2012 21:56:30 +0100 X-Originating-IP: 80.216.107.103 X-Scan-Result: No virus found in message 1RyrKW-0000hX-Gn. X-Scan-Signature: ch-smtp05.sth.basefarm.net 1RyrKW-0000hX-Gn eb31c324b1f9c037bc030ab846ca76b3 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:56996 Archived-At: --=-=-= Content-Type: text/plain Attached is a patch which adds the field text property to the ERC prompt. This allows users to use `kill-whole-line' to kill all text back to the prompt given that it's on a single line. --=-=-= Content-Type: text/plain Content-Disposition: inline Content-Description: Patch === modified file 'lisp/erc/erc.el' --- lisp/erc/erc.el 2012-01-19 07:21:25 +0000 +++ lisp/erc/erc.el 2012-02-18 20:50:44 +0000 @@ -3646,6 +3646,7 @@ 'start-open t ; XEmacs 'rear-nonsticky t ; Emacs 'erc-prompt t + 'field t 'front-sticky t 'read-only t)) (erc-put-text-property 0 (1- (length prompt)) --=-=-=--