unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Asko Tontti <mjuxsw@yahoo.com>
Subject: line movement broken with intangible (forms-mode)
Date: Wed, 20 Oct 2004 16:16:40 -0700 (PDT)	[thread overview]
Message-ID: <20041020231640.14523.qmail@web90005.mail.scd.yahoo.com> (raw)

This bug report will be sent to the Free Software
Foundation,
not to your local site managers!
Please write in English, because the Emacs
maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the
bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X
toolkit, Xaw3d scroll bars)
  of 2004-04-15 on bugs.devel.redhat.com
configured using `configure 
--host=i386-redhat-linux --build=i386-redhat-linux 
--target=i386-redhat-linux-gnu --program-prefix=
--prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib 
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info
--with-pop --with-sound'

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: en_US.UTF-8
   locale-coding-system: utf-8
   default-enable-multibyte-characters: t

Please describe exactly what actions triggered the
bug and the precise symptoms of the bug:

In forms major mode

1) <up> key (previous-line) doesn't work if previous
line is intangible and non-empty.

2) forms--show-record sets cursor (point) to wrong
location. It should be on the first field. There seems
to be initialization problem so that intangible
property isn't honoured properly before using <tab>
key in the current record. This is also fixed by
setting cursor to the first field.


Patches:

--- simple.el.ORIG	2002-10-24 16:07:58.000000000 +0300
+++ simple.el	2004-10-20 00:10:32.167568719 +0300
@@ -2594,7 +2594,7 @@
  	  (goto-char (point-min))
  	  (let ((inhibit-point-motion-hooks nil))
  	    (goto-char new))
-	  (if (<= new line-end)
+	  (if (<= (point) line-end)
  	      (setq new (point)))))
        ;; NEW is where we want to move to.
        ;; LINE-BEG and LINE-END are the beginning and
end of the line.


--- forms.el.ORIG	2001-07-16 15:22:58.000000000 +0300
+++ forms.el	2004-10-20 00:22:51.505796688 +0300
@@ -1546,7 +1546,7 @@
    (funcall forms--format forms--the-record-list)

    ;; Prepare.
-  (goto-char (point-min))
+  (goto-char (aref forms--markers 0))
    (set-buffer-modified-p nil)
    (setq buffer-read-only forms-read-only)
    (setq mode-line-process



Recent messages:
Loading
/usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el

(source)...done
Loading font-lock...
Loading regexp-opt...done
Loading font-lock...done
Loading mwheel...done
Loading jka-compr...done
For information about the GNU Project and its goals,
type C-h C-p.
Making completion list...
Loading view...done
Loading emacsbug...done
 

-- 
"Technological improvement flows from the freedom of
technologists
to learn and create." - Professor Edward W. Felten



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

                 reply	other threads:[~2004-10-20 23:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20041020231640.14523.qmail@web90005.mail.scd.yahoo.com \
    --to=mjuxsw@yahoo.com \
    /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).