From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nospam@dev.null (Alexey Pustyntsev) Newsgroups: gmane.emacs.help Subject: Re: getting rid of ^M displayed by emacs-w3m Date: Sun, 25 Mar 2007 08:07:15 +1100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174770163 13321 80.91.229.12 (24 Mar 2007 21:02:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Mar 2007 21:02:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 24 22:02:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVDNj-0008Os-Q7 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Mar 2007 22:02:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVDPm-00083v-PL for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Mar 2007 16:04:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVDPa-00083M-JM for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 17:04:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVDPT-0007xG-FS for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 17:04:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVDPT-0007x2-Au for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 16:04:23 -0500 Original-Received: from [87.242.74.155] (helo=sycore.org) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVDNP-0006iu-2Q for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 17:02:15 -0400 Original-Received: by sycore.org (Postfix, from userid 8) id 65D57E8C3; Sun, 25 Mar 2007 00:02:00 +0300 (MSK) Original-Received: from sycore.org (unknown [217.148.192.167]) by sycore.org (Postfix) with ESMTP id F00C3E8A4 for ; Sun, 25 Mar 2007 00:01:56 +0300 (MSK) Original-Received: from alexey by sycore.org with local (Exim 4.63) (envelope-from ) id 1HVDSF-0004hS-Nr for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 08:07:15 +1100 User-Agent: Gnus/5.11 Emacs/22.0.95.1 In-Reply-To: (Peter Dyballa's message of "Sat\, 24 Mar 2007 20\:03\:39 +0100") X-detected-kernel: Linux 2.4-2.6 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:42164 Archived-At: Peter Dyballa writes: > Am 24.03.2007 um 19:27 schrieb Alexey Pustyntsev: > >> it should be solved by default > > You could consider to set a default encoding, and that encoding's > name should end in -mac, because it's a Mac feature to end lines with > Carriage Return. Or are the lines ending in Carriage Return + Line > Feed? Then a -dos ending of the encoding's name is more suitable. > > set-default-coding-systems > prefer-coding-system > setq default-file-name-coding-system > setq default-buffer-file-coding-system > > I am not a regular user of w3m. When I used it I never encountered > such an effect. > > -- > Greetings > > Pete > Thanks for the comments. I am using GNU/Linux on a P4 box. w3m is really handy. As I said earlier, w3m displays everything fine in terminal, and my default coding system is utf-8 (both OS and emacs). Below are the snippets from the html source of the pages in question. ----------------------start snippet 1--------------------------- ;; -- put to distinguish the snippet from quoted text ;; > And several others ----------------------end snippet 1----------------------------- ----------------------start snippet 2--------------------------- ;; -- put to distinguish the snippet from quoted text ;; >

PHP supports eight primitive types. ;;

Four scalar types: ----------------------end snippet 2----------------------------- ^M comes after '>' and before 'And several' in the first snippet and after ' ' and before 'PHP supports' or 'Four scalar' in the second. It seems there are no line feeds there. I am inclined to think it is the problem of emacs-w3m, (not emacs, not w3m), I am unsure, though. -- Rgds Alexey Today is Prickle-Prickle, the 11st day of Discord in the YOLD 3173