From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David M. Karr" Newsgroups: gmane.emacs.help Subject: Re: Emacs (nowindows) get confused about line display Date: Fri, 20 May 2016 17:51:10 -0700 Message-ID: <573FB0FE.6080205@gmail.com> References: <573F818A.9040604@gmail.com> <86wpmoux68.fsf@student.uu.se> <573FAF95.2060203@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1463791913 26523 80.91.229.3 (21 May 2016 00:51:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 May 2016 00:51:53 +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 May 21 02:51:46 2016 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 1b3v8p-0001Je-AV for geh-help-gnu-emacs@m.gmane.org; Sat, 21 May 2016 02:51:43 +0200 Original-Received: from localhost ([::1]:38405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3v8l-000707-33 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 May 2016 20:51:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3v8O-0006zp-Ar for help-gnu-emacs@gnu.org; Fri, 20 May 2016 20:51:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3v8L-0003fQ-2l for help-gnu-emacs@gnu.org; Fri, 20 May 2016 20:51:16 -0400 Original-Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:36734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3v8K-0003fM-SF for help-gnu-emacs@gnu.org; Fri, 20 May 2016 20:51:13 -0400 Original-Received: by mail-pa0-x235.google.com with SMTP id bt5so44022018pac.3 for ; Fri, 20 May 2016 17:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=aMk4uRPrfbnTDTmmEPfVDlrgXwlcefecav91xzEzHEM=; b=GOnaXoGZIORG5e276GUNAa8GCSx2h3pqFWdXS2nv4NedH8Z11ezrydvOCEBe6vJ9oR nTaiLBFOxTaqYxPQE024Y+FyP6D5JVyNXVhnAeooNk2YMFh5e55NuvCPM3/nte3X0k+L W8sKCMuWGRxTyLPnd+yOExWnf5EhRJCAFbYSBtwpcPljBlkaQePW7PDAl5hArr6YRcSY 5HL5ifbeUn3iPkW3p571vcZaAgRlXHHA5Zc7jlCi4pXn2ZHDO9lUrM9C9edAbC7ndpOJ aqZ7N0NK9OOsE+Uid2PrUnItFTzbZHhGbKNU0/tjKI1YxH9JYOdQ6xygrDig3JzHKdQb 3mXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=aMk4uRPrfbnTDTmmEPfVDlrgXwlcefecav91xzEzHEM=; b=lPW/fnBQF0fEi0rNB65cYG7ET1EP0Tax7WI2EaRLyQAvVbBUxYm2NB/2lsJfzo9t7G tpWJtPgedAskX2IkVe+tXAjtFnJND2LCMCHjm5xjn2UCMNSrIvyO6usD/dyGEKd9hr1s xXNM/flnfTDE59k+0YWoyJt2Kym2mNSPzkSvbboAvcf8L79D+0YgZKFsQS9tGrAmhs5w OveGiEtUvzoLnTjXBSpK7p62j9kFMY5RlGc8Y2KRzYBRL5qw7tgXQG4Niomw9V/JyZi1 WA+wlZ5nybCny+vuUfCrKCO91zQvj6VrvKZgpeciKmVFgSNwHS9IJh+1nmDgicmmuoQ+ 3F7A== X-Gm-Message-State: AOPr4FXEahDS7DoQFS+3S3GEMn644mxEgw4PNSd9+mjIc/EQ0OPv+5vnKLZKTD/FYZHKBA== X-Received: by 10.67.22.129 with SMTP id hs1mr9001049pad.105.1463791871769; Fri, 20 May 2016 17:51:11 -0700 (PDT) Original-Received: from localhost.localdomain (c-67-168-157-163.hsd1.wa.comcast.net. [67.168.157.163]) by smtp.gmail.com with ESMTPSA id g195sm10470728pfb.7.2016.05.20.17.51.10 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 May 2016 17:51:10 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <573FAF95.2060203@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110084 Archived-At: On 05/20/2016 05:45 PM, David M. Karr wrote: > On 05/20/2016 04:28 PM, Emanuel Berg wrote: >> "David M. Karr" >> writes: >> >>> On my CentOS laptop, I have a CentOS VM that >>> I created with Vagrant. I have Emacs 24.3.1 >>> on the VM. >>> >>> I start a terminal window on the laptop and ssh >>> to the VM. I run Emacs, but I don't have X11, >>> so it's in "no windows" mode. >>> >>> Sometimes, when I start emacs on the VM, it >>> starts up fine and displays properly. >>> >>> Quite often, and pretty continuously when it >>> gets into this state, it will start up with >>> a blank editor view, with no menu bar, and >>> the cursor displays on the SECOND line of the >>> window. When I then view or edit files, it >>> appears that Emacs is confused about its line >>> rendering. The cursor appears at the bottom >>> of the window, even though it "thinks" it's >>> on the top line of the file I'm viewing. >>> I can scroll the cursor to the right, and it >>> will jump back to the beginning when it >>> reaches the length of the first line, and >>> so on. >>> >>> Emacs is completely useless in this state. >>> >>> What can I do at this point? >> You can analyze the whole chain of invocation. >> What is the terminal emulator, shell, ssh >> command, and Emacs invocation command? And if >> you have tmux or something to that extent in >> between any of those, that can influence, also. >> > Ok, well, $TERM appears to be "xterm-256color", shell is bash, I got > there with "vagrant ssh", and I execute Emacs with "emacs". > > That gave me the idea to run "emacs -q", and that does provide a > clue. The display is fine after that, but when I load my .emacs after > the fact (eval-current-buffer), it's then messed up. Before I do a > binary search to narrow down what initially creates the symptom, are > there any other guidelines for narrowing down something like this? Actually, narrowing it down didn't take very long, but I'd still like to understand this better. The 2-3rd line of my .emacs file has this: -------------------------- (set-frame-position (selected-frame) 0 0) (set-frame-height (selected-frame) 60) ---------------- This is obviously not relevant in a emacs-nw situation, but I copied this from my "home" .emacs file. Why would this cause the symptom that I'm seeing? It's easy enough to wrap this with a "(display-graphic-p)" call, but I'd like to understand why this is happening.