From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: How to get rid of default lines in the *scratch* buffer Date: Wed, 10 Dec 2014 02:54:21 +0000 Message-ID: <87a92wz02q.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418180102 16933 80.91.229.3 (10 Dec 2014 02:55:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 02:55:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: chickenkinwing@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 10 03:54:55 2014 Return-path: Envelope-to: geh-help-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 1XyXQS-000632-VK for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2014 03:54:53 +0100 Original-Received: from localhost ([::1]:43220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyXQS-0004yz-Ha for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 21:54:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyXQ9-0004yh-MW for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 21:54:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyXQ1-00077U-D4 for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 21:54:33 -0500 Original-Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:37640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyXQ1-00076f-5X for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 21:54:25 -0500 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp04.blacknight.com (Postfix) with ESMTP id 6E95E9886D for ; Wed, 10 Dec 2014 02:54:23 +0000 (UTC) Original-Received: (qmail 16141 invoked from network); 10 Dec 2014 02:54:23 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.79.103.238]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 10 Dec 2014 02:54:23 -0000 In-Reply-To: (chickenkinwing@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.35 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101495 Archived-At: chickenkinwing@gmail.com writes: > By default, the *scratch* buffer contains 2 lines of > "-- Press Enter here to update --". > > I find it a major annoyance for me. I have to remove them manually. > > Is there a way to automatically get rid of these lines (to make scratch buffer empty) when the *scratch* buffer starts? I don't have any lines saying "-- Press Enter here to update --" in my *scratch*. Does this happen to you with emacs -Q ? I think you have a package that's outputting text to the wrong buffer on initialization. To delete the normal lines in scratch do (delete-region (point-min) (point-max)) in *scratch*. BR, Robert Thorpe