From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17785 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.gnus.user Subject: Re: Line Wrapping set to Word Wrap in Summary Buffer - how to permanently change to Truncate Long Lines? Date: Wed, 02 Dec 2015 18:23:16 +0100 Message-ID: References: <87io4iavdz.fsf@debian.uxu> <87d1uo7oem.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7972266571670916615==" X-Trace: ger.gmane.org 1449077046 4350 80.91.229.3 (2 Dec 2015 17:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2015 17:24:06 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Dec 02 18:24:00 2015 Return-path: Envelope-to: gegu-info-gnus-english@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 1a4B8F-0000BO-Iv for gegu-info-gnus-english@m.gmane.org; Wed, 02 Dec 2015 18:23:55 +0100 Original-Received: from localhost ([::1]:59498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4B8F-00017q-32 for gegu-info-gnus-english@m.gmane.org; Wed, 02 Dec 2015 12:23:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4B7o-0000aM-LN for info-gnus-english@gnu.org; Wed, 02 Dec 2015 12:23:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4B7l-0002yd-5E for info-gnus-english@gnu.org; Wed, 02 Dec 2015 12:23:28 -0500 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:34351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4B7k-0002yZ-VY for info-gnus-english@gnu.org; Wed, 02 Dec 2015 12:23:25 -0500 Original-Received: by wmvv187 with SMTP id v187so265855638wmv.1 for ; Wed, 02 Dec 2015 09:23:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=+6ykmTgerVrIUHfeyOA+z+evUts9NIbt+FlCT8kx5wE=; b=FcNy+5XywK6O204DTwROFRQrXv65DC8G6+bRODwbnKtlO2jQOa0/CwBeDp8Y+TiMFw Cm/2bfynOaI8JfZo2+JhMj6w0ZrY27c+0ypvUDhY+SHDu3sUF26LvR5+mABleF14Y27N azyq1Cj37/8Nvm1dng/EzQCu6LWISageCkLk5cBN5WTsqCn+5wi+kh/PwysfQG6FY9Cu Vd0+FCrwTN1EnRvV59WK21PJ90OHZAvbccubiI/tf1A9ieWsLBV1k/QY8OU8uLd6tB/K HkNjGAfqHiILU5w6+o/qVW1+FgkxiOJHXB9Ft0LcoPuDMToFCntI1U20eOnqgN8geIPY hGaQ== X-Received: by 10.194.178.70 with SMTP id cw6mr6172999wjc.73.1449077004357; Wed, 02 Dec 2015 09:23:24 -0800 (PST) Original-Received: from Rainers-MacBook-Pro.local ([2a01:e35:8baa:b070:dd68:f02b:6775:9b56]) by smtp.gmail.com with ESMTPSA id h67sm31597142wmf.17.2015.12.02.09.23.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2015 09:23:22 -0800 (PST) In-Reply-To: <87d1uo7oem.fsf@debian.uxu> (Emanuel Berg's message of "Wed, 02 Dec 2015 18:26:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.52 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17785 Archived-At: --===============7972266571670916615== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Emanuel Berg writes: > Rainer M Krug writes: > >> All this does not work if one sets >> global-visual-line-mode to 1 in a different >> buffer... >> >> Found it, changed it to visual-line-mode and >> everything is working again. > > ... do you really want `visual-line-mode' in a Gnus > summary buffer? No - I don't want it - I had it for a different buffer. > > Anyway, instead of using defaults, it can be sensible > to set up things like this on a per-mode basis. > Especially since you mention the `gnus-summary-mode' > in particular probably this is what you should do. > > For example, here is what I do for the HTML and XML > modes - as you see I disable `visual-line-mode' for > each. > > You can do the same (or enable it) with > `gnus-summary-mode-hook', if need be. > > ;; HTML > (defvar html-mode-map) > (defun html-mode-hook-f () > (enable-line-mode) > (define-key html-mode-map "\C-ow" #'w3m-view) > (auto-fill-mode -1) > (visual-line-mode -1) ) > (add-hook 'html-mode-hook #'html-mode-hook-f) > > ;; XML > (defun nxml-mode-hook-f () > (visual-line-mode -1) ) > (add-hook 'nxml-mode-hook #'nxml-mode-hook-f) Interesting - have never thought about that. Will look into this. Thanks, Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWXykIAAoJENvXNx4PUvmCWSgH/iOFLhOz4pfWOKAFwagPRBXR IU9xh0b+7mleXqDlIIqcEdBNJCrTKObZDkWoNYs6lACCy7PlYLXbmnKU94XokYXc vkXKYkTeqxnZz/GczqjpAz8QA6zESd7FIrukxgg0gMCstiT9e1n2HMkZHZ+ia7MM UOaqqPicYynMqwpp/laomidSPPzNKsEbdma5+O2zaT3aqyQ1vYU6tG3bgVGg+uBo GIiRGdSpIYg2tsQ0pmnBR6ZIrkNzc3U0T7guBm6mmGL60MTa+yM+aZpVVhUePb/v oiSeonWqOFWHSS57T2hO3SVCe+Ok2ReB6aLue6tgvWV2pTYGOE3PaNGLOBtJc3k= =tO8a -----END PGP SIGNATURE----- --=-=-=-- --===============7972266571670916615== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline