From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Stepanov Newsgroups: gmane.emacs.help Subject: Word wrap and horizontal scrolling Date: Sun, 13 Mar 2011 08:53:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1300034502 13863 80.91.229.12 (13 Mar 2011 16:41:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 16:41:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 17:41:38 2011 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.69) (envelope-from ) id 1PyoMM-0000U1-G2 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 17:41:38 +0100 Original-Received: from localhost ([127.0.0.1]:42241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyoML-0005rx-Rd for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 12:41:37 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!f31g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 188.120.234.82 Original-X-Trace: posting.google.com 1300031851 5119 127.0.0.1 (13 Mar 2011 15:57:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 13 Mar 2011 15:57:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f31g2000pri.googlegroups.com; posting-host=188.120.234.82; posting-account=3o5FxAoAAACQs6MQn2yAIa7V6alSZmKX User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185919 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:80061 Archived-At: I am still trying to make emacs work as usual Windows text editor such as Notepad++ and MS Visual Studio. I can turn off word wrap in Notepad+ + and it will show horizontal scrollbar. To do such in emacs i must input M-x toggle-truncate-lines and scroll to the left and to the right using C-PgDn and C-PgUp. But this method scrolls code with too big offset. For example my current task at work is to make some changes in such code: if(...){ if(...){ if(...){ ... } else{ if(...){ if(...){ if(...){ else{ if(...){ } else{ I can edit this code in Notepad++. But Emacs wrap lines. When i turn of line wrapping C-PgDn moves me to the last if and C-PgUp moves me to the first if. If I want to edit center part of code I move using left and write arrows at the keyboard. This Emacs behaviour is shameful. Is there some way to emulate horizontal scrollbar?