From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#21054: Reopen Date: Thu, 19 Nov 2015 11:37:26 -0600 Message-ID: <86bnap7uw9.fsf@stephe-leake.org> References: <87380rvx91.fsf@telefonica.net> <87wptg7y9c.fsf@wanadoo.es> <83twoj9q18.fsf@gnu.org> <86oaep7w32.fsf@stephe-leake.org> <86k2pd7vti.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447954709 9481 80.91.229.3 (19 Nov 2015 17:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 17:38:29 +0000 (UTC) Cc: =?UTF-8?Q?=C3=93scar?= Fuentes , 21054@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 18:38:17 2015 Return-path: Envelope-to: geb-bug-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 1ZzTA0-0001f0-MA for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 18:38:16 +0100 Original-Received: from localhost ([::1]:43204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzTA0-0003Gn-0o for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Nov 2015 12:38:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzT9q-00036V-Mb for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2015 12:38:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzT9m-0007eY-J8 for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2015 12:38:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzT9m-0007eT-Fn for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2015 12:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZzT9l-0005SQ-UH for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2015 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Nov 2015 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21054-submit@debbugs.gnu.org id=B21054.144795466620943 (code B ref 21054); Thu, 19 Nov 2015 17:38:01 +0000 Original-Received: (at 21054) by debbugs.gnu.org; 19 Nov 2015 17:37:46 +0000 Original-Received: from localhost ([127.0.0.1]:45149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZzT9V-0005Ri-53 for submit@debbugs.gnu.org; Thu, 19 Nov 2015 12:37:45 -0500 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:46124) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1ZzT9S-0005RT-88 for 21054@debbugs.gnu.org; Thu, 19 Nov 2015 12:37:43 -0500 Original-Received: (qmail 27415 invoked by uid 0); 19 Nov 2015 17:37:38 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy10.mail.unifiedlayer.com with SMTP; 19 Nov 2015 17:37:38 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id jVdV1r00t2UdiVW01VdYuW; Thu, 19 Nov 2015 10:37:37 -0700 X-Authority-Analysis: v=2.1 cv=VOBOwb/X c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=qtqOOiqGOCEA:10 a=LG7pfJLOKvNrOX9xqgIA:9 Original-Received: from [76.218.37.33] (port=62124 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZzT9G-0007Kl-Gy; Thu, 19 Nov 2015 10:37:30 -0700 In-Reply-To: <86k2pd7vti.fsf@stephe-leake.org> (Stephen Leake's message of "Thu, 19 Nov 2015 11:17:29 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108919 Archived-At: Stephen Leake writes: > Stephen Leake writes: > I spoke too soon; this allows hitting on cell A1. But hitting > on cell C8 shows the contents of A1. So I missed something. Found it; the change deleted (ses-set-curcell) from ses-command-hook, I assume because it was in a section labeled "update mode line". But it also updates ses--curcell, so I put it back, and things seem to work: diff --git a/lisp/ses.el b/lisp/ses.el index ec1359b..564d2a5 100644 --- a/lisp/ses.el +++ b/lisp/ses.el @@ -1905,6 +1905,8 @@ Narrows the buffer to show only the print area. Gives it `read-only' and (forward-char) (point)))) (put-text-property pos end 'cursor-intangible sym)))))) + (goto-char (point-min)) + (ses-set-curcell)) ;; Create the underlining overlay. It's impossible for (point) to be 2, ;; because column A must be at least 1 column wide. (setq ses--curcell-overlay (make-overlay (1+ (point-min)) (1+ (point-min)))) @@ -2063,7 +2065,11 @@ narrows the buffer now." ;; read the local variables at the end of the file. Now it's safe to ;; do the narrowing. (narrow-to-region (point-min) ses--data-marker) - (setq ses--deferred-narrow nil))) + (setq ses--deferred-narrow nil)) + + ;; Update the current cell + (ses-set-curcell)) + ;; Prevent errors in this post-command-hook from silently erasing the hook! (error (unless executing-kbd-macro -- -- Stephe