From: Thien-Thi Nguyen <ttn@giblet.glug.org>
Cc: emacs-devel@gnu.org
Subject: Re: column int->float diff
Date: Sat, 01 Jun 2002 19:54:32 -0700 [thread overview]
Message-ID: <E17ELVo-0004mH-00@giblet> (raw)
In-Reply-To: <200206012105.g51L5Dp17436@aztec.santafe.edu> (message from Richard Stallman on Sat, 1 Jun 2002 15:05:13 -0600 (MDT))
From: Richard Stallman <rms@gnu.org>
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:
next prev parent reply other threads:[~2002-06-02 2:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-31 18:24 column int->float diff Thien-Thi Nguyen
2002-06-01 21:05 ` Richard Stallman
2002-06-02 2:54 ` Thien-Thi Nguyen [this message]
2002-06-03 11:41 ` Richard Stallman
2002-06-04 5:13 ` Eli Zaretskii
2002-06-04 23:27 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E17ELVo-0004mH-00@giblet \
--to=ttn@giblet.glug.org \
--cc=emacs-devel@gnu.org \
--cc=ttn@glug.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).