From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: column int->float diff Date: Sat, 01 Jun 2002 19:54:32 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200206012105.g51L5Dp17436@aztec.santafe.edu> Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1022986841 23773 127.0.0.1 (2 Jun 2002 03:00:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 2 Jun 2002 03:00:41 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ELbk-0006BK-00 for ; Sun, 02 Jun 2002 05:00:40 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17ELuW-0002OS-00 for ; Sun, 02 Jun 2002 05:20:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17ELbB-0006pr-00; Sat, 01 Jun 2002 23:00:05 -0400 Original-Received: from ca-crlsbd-u5-c4a-a-172.crlsca.adelphia.net ([24.48.214.172] helo=giblet) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17ELZe-0006mA-00; Sat, 01 Jun 2002 22:58:30 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17ELVo-0004mH-00; Sat, 01 Jun 2002 19:54:32 -0700 Original-To: rms@gnu.org In-Reply-To: <200206012105.g51L5Dp17436@aztec.santafe.edu> (message from Richard Stallman on Sat, 1 Jun 2002 15:05:13 -0600 (MDT)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4554 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4554 From: Richard Stallman Date: Sat, 1 Jun 2002 15:05:13 -0600 (MDT) It seems reasonable; if you see that it works, how about installing it? ok. fyi, i see that it works by temporarily adding `float-current-column' that exposes the float and running a scan on some files (code below) w/o error. further testing raises another question. inserting text increments the column normally, but this is not the case for images (on the same line) which add 1 to the column only: TEXT-IMAGE-TEXT2 012345 6789... i surmise there is no code that depends on TEXT2 column, or that such code would silently break depending on how we fix this underspecification, but that it's not really a big deal, just something to mention to programmers (and specify more precisely, of course). am i missing something? does anyone else see different behavior? thi __________________________________________ ;; -*- emacs-lisp -*- (defvar count 0) (mapcar (lambda (file) (find-file file) (goto-char (point-min)) (princ file) (princ " ") (while (< (point) (point-max)) (unless (= (current-column) (float-current-column)) (error "%s %s %s" (point) (current-column) (float-current-column))) (forward-char 1) (setq count (1+ count)) (when (= 0 (% count 1024)) (princ "."))) (kill-buffer (current-buffer)) (princ "\n")) (split-string (shell-command-to-string "find . -name '*.[hc]'"))) ;;; Local variables: ;;; compile-command: "./emacs -q --no-site-file -batch -l .ttn.test" ;;; End: