From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: end of line symbol Date: Sat, 3 Dec 2005 07:17:35 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133623219 15786 80.91.229.2 (3 Dec 2005 15:20:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2005 15:20:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 03 16:20:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiZA0-0001ei-Uh for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Dec 2005 16:18:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiZA2-0000mD-QB for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Dec 2005 10:18:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EiZ96-0000i0-Nk for help-gnu-emacs@gnu.org; Sat, 03 Dec 2005 10:17:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EiZ94-0000fB-1Q for help-gnu-emacs@gnu.org; Sat, 03 Dec 2005 10:17:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiZ93-0000f0-KF for help-gnu-emacs@gnu.org; Sat, 03 Dec 2005 10:17:49 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EiZ9D-0001ee-LI for help-gnu-emacs@gnu.org; Sat, 03 Dec 2005 10:17:59 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jB3FXeWP026243 for ; Sat, 3 Dec 2005 09:33:41 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jB3FHdWN029120 for ; Sat, 3 Dec 2005 08:17:39 -0700 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw5-141-144-105-46.vpn.oracle.com [141.144.105.46]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jB3FHcvC029112 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 3 Dec 2005 08:17:39 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31641 Archived-At: > I would like to see where the end of line > characters are. That is, at the end of lines > a pilcrow sign (\P in TeX) would be nice. > > How can it be done? I don't think there is such a feature, because Emacs solves this the other way around: it can show you the trailing whitespace, so that you know where the last non-whitespace character of a line is NOT the end of the line. The feature that shows trailing whitespace is optional; you can turn it on by setting the variable show-trailing-whitespace to non-nil value in the buffers you want to see that. Let us know about your use case - why do you want to see the newline character? Perhaps you are used to word-processing applications where text is not divided into lines but into paragraphs, and the pilcrow tells you where the paragraph ends. In such apps, you often must make sure to select the pilcrow along with the paragraph text, in order to be sure to have selected the paragraph entity (structure). In Emacs, text is usually divided by newline characters - it doesn't need to be, but it often is. That is, it is divided into lines - the newline characters (Control-J) separate the lines. The same principle is in effect: you can select the text in a line with or without the newline character at its end. Commands like `kill-line' (bound to `C-k') normally include the newline in the selection, but there are sometimes user options for controlling this. If you want to _see_ the newline characters, just look at them: whenever you see a visible line break, there is a (single) newline character. (In some modes, such as longlines, some of those newline characters might be temporary, for display and editing purposes, and be removed upon saving to a file.) If you drag your mouse across a line, that selects the line text. If you continue to drag the mouse down slightly and toward the beginning of the next line, you'll select the newline also - and you will see that the region highlighting extends from the end of the line text to the edge of the window. If you want to search for a newline character, use `C-s C-q C-j'. If you want to highlight trailing whitespace _besides_ the newline character, do as Eli suggested above. In sum, a visible line break shows you a newline character. You can select it or not, when you select line text. There is, as far as I know, no out-of-the-box way to show newlines with a special symbol (as opposed to showing them as line breaks), but that could easily be written. It hasn't been done, probably, because it's not that useful in Emacs - Emacs is different from paragraph-oriented word processors, as mentioned above. HTH.