From: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: need option so line-move-to-column ignores fields, plus patch
Date: Wed, 11 Oct 2006 00:13:36 -0400 [thread overview]
Message-ID: <2cd46e7f0610102113k3cd33334g135e6016d3146414@mail.gmail.com> (raw)
In-Reply-To: <2cd46e7f0609241853p6d9e9046p37b89b039d68ee92@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
On 9/24/06, Ken Manheimer <ken.manheimer@gmail.com> wrote:
> i see different behavior when i use an arbitrarily named field in my
> example. it's closer to what i need, as long as i don't put the
> cursor near the border between the fields or in the structure side,
> but there are still some problematic behaviors. i'm attaching a new
> version of the script which describes exactly what's going on.
i'm still having some problems with the behavior. when moving
downwards, the cursor jumps to column 1 for one line when it would
wind up shifting to a new field. it then resumes column-sticky
behavior from the column on which it started, until the next field
change.
the same thing happens when moving upwards, except to the end-of-line
instead of column 1, iff the content side has a field qualifier. the
example i'm posting can be used to show both situations, by leaving or
removing the comment chars eliding a few of the lines.
i would like to see the behavior richard describes, but would be ok
with plain column-sticky behavior.
i'm sorry i've taken a while to post this, and i'm going to be away
for several days starting tomorrow, so wanted to put this out there.
--
ken
ken.manheimer@gmail.com
http://myriadicity.net
[-- Attachment #2: linefield-example.el --]
[-- Type: application/octet-stream, Size: 1734 bytes --]
;; Eval or load this script and execute the `linefield-example' command
;; for demonstration of the field boundary misbehaviors in an emacs 22 cvs
;; checkout as of mid-day (EST), October 9, 2006.
;; ken
;; ken.manheimer@gmail.com
;; http://myriadicity.net
(defvar linefield-text
"The lines with a '|' bar as their first non-whitespace
character are decorated with 'field 'boundary and 'face
'highlight text properties from the left margin until and
including the bar.
| I've lost track of what the correct behavior is supposed to be.
| When the cursor first changes fields while moving downwards,
| it jumps to the first column.
| It moves back to its original column for subsequent moves.
| If the content side has its own field setting
| (see the commented out code), then the cursor shifts
| to the last column when moviing upwards
| and hitting a field shift.
The jumps to the first or last column seem undesirable to me."
"Text for demonstrating linefield staircase.")
(defun linefield-example ()
"Demonstrate fieldtext boundary misbehavior."
(interactive)
(let* ((buffer (get-buffer-create "linefield-example"))
first second
(inhibit-field-text-motion t))
(pop-to-buffer buffer)
(erase-buffer)
(insert linefield-text)
(goto-char (point-min))
(while (re-search-forward "^ +|" nil t)
(cond ((not first) (setq first (point)))
((not second) (setq second (point))))
(set-text-properties (match-beginning 0) (point)
'(field structure face highlight))
;; (set-text-properties (point) (progn (end-of-line) (point))
;; '(field content face bold))
)
(goto-char second)))
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2006-10-11 4:13 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-31 15:48 need option so line-move-to-column ignores fields, plus patch Ken Manheimer
2006-08-31 16:25 ` Ken Manheimer
2006-08-31 17:11 ` David Kastrup
2006-08-31 22:57 ` Richard Stallman
2006-09-01 4:17 ` Miles Bader
2006-09-01 6:39 ` Ken Manheimer
2006-09-03 15:17 ` Richard Stallman
2006-09-04 4:43 ` Ken Manheimer
2006-09-04 17:18 ` Richard Stallman
2006-09-04 19:56 ` Ken Manheimer
2006-09-06 8:49 ` Richard Stallman
2006-09-06 16:52 ` Ken Manheimer
2006-09-07 6:54 ` Richard Stallman
2006-09-07 14:47 ` Ken Manheimer
2006-09-23 23:29 ` Ken Manheimer
2006-09-24 16:28 ` Richard Stallman
2006-09-24 20:17 ` Ken Manheimer
2006-09-25 20:48 ` Richard Stallman
2006-09-24 22:04 ` Chong Yidong
2006-09-24 22:10 ` Chong Yidong
2006-09-25 1:53 ` Ken Manheimer
2006-10-11 4:13 ` Ken Manheimer [this message]
2006-10-11 18:50 ` Richard Stallman
2006-10-11 19:19 ` Ken Manheimer
2006-10-12 22:37 ` Richard Stallman
2006-09-25 1:31 ` Ken Manheimer
2006-09-25 8:36 ` Slawomir Nowaczyk
2006-09-25 20:48 ` Richard Stallman
2006-09-25 21:43 ` Chong Yidong
2006-09-27 17:18 ` Ken Manheimer
2006-09-29 16:32 ` Richard Stallman
2006-09-29 18:21 ` Chong Yidong
2006-09-07 6:54 ` Richard Stallman
2006-09-07 14:27 ` Ken Manheimer
2006-09-05 4:48 ` Miles Bader
2006-09-01 6:30 ` Ken Manheimer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cd46e7f0610102113k3cd33334g135e6016d3146414@mail.gmail.com \
--to=ken.manheimer@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.