* Re: picture mode
[not found] <m2elewje7n.fsf@localhost.purdue.edu>
@ 2002-06-25 2:39 ` Miles Bader
2002-06-25 2:39 ` Miles Bader
1 sibling, 0 replies; 10+ messages in thread
From: Miles Bader @ 2002-06-25 2:39 UTC (permalink / raw)
Cc: bug-gnu-emacs
Deepak Dinesh <sigserv@yahoo.com> writes:
> What is the easiest way to draw a rectangle in picture mode? The
> command C-c C-r will draw a rectangle between mark and point, but I
> can't mark on an empty line.
I always use `artist-mode' to draw in emacs.
Then you can select `Drawing > Rectangle' from the mouse-2 menu to
select rectangle mode, and drag out a rectangle with the mouse ...
or if you want to use the keyboard, use `C-c C-a r' to select rectangle
mode, and then use RET to start a rectangle, C-b/C-f/C-p/C-n to drag
it, and then RET again to finish.
It's really quite spiffy...
[but that said, the picture-mode behavior you're complaining about
sounds like a bug, so I've CC'd this to bug-gnu-emacs]
-miles
--
I have seen the enemy, and he is us. -- Pogo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
[not found] <m2elewje7n.fsf@localhost.purdue.edu>
2002-06-25 2:39 ` Miles Bader
@ 2002-06-25 2:39 ` Miles Bader
1 sibling, 0 replies; 10+ messages in thread
From: Miles Bader @ 2002-06-25 2:39 UTC (permalink / raw)
Cc: bug-gnu-emacs
Deepak Dinesh <sigserv@yahoo.com> writes:
> What is the easiest way to draw a rectangle in picture mode? The
> command C-c C-r will draw a rectangle between mark and point, but I
> can't mark on an empty line.
I always use `artist-mode' to draw in emacs.
Then you can select `Drawing > Rectangle' from the mouse-2 menu to
select rectangle mode, and drag out a rectangle with the mouse ...
or if you want to use the keyboard, use `C-c C-a r' to select rectangle
mode, and then use RET to start a rectangle, C-b/C-f/C-p/C-n to drag
it, and then RET again to finish.
It's really quite spiffy...
[but that said, the picture-mode behavior you're complaining about
sounds like a bug, so I've CC'd this to bug-gnu-emacs]
-miles
--
I have seen the enemy, and he is us. -- Pogo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
@ 2002-06-25 23:32 Richard Stallman
2002-06-26 2:40 ` Duke Patterson
0 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2002-06-25 23:32 UTC (permalink / raw)
Cc: emacs-devel
> What is the easiest way to draw a rectangle in picture mode? The
> command C-c C-r will draw a rectangle between mark and point, but I
> can't mark on an empty line.
I am not sure what "can't mark on an empty line" means.
Would you please state a precise test case so I can be sure
I understand?
Please read the Bugs section in the Emacs manual, which provides
guidelines on how to write a bug report to give us the
necessary information so we can fix the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-25 23:32 picture mode Richard Stallman
@ 2002-06-26 2:40 ` Duke Patterson
2002-06-26 22:25 ` Richard Stallman
0 siblings, 1 reply; 10+ messages in thread
From: Duke Patterson @ 2002-06-26 2:40 UTC (permalink / raw)
Cc: emacs-devel
--- Richard Stallman <rms@gnu.org> wrote:
> > What is the easiest way to draw a rectangle in
> picture mode? The
> > command C-c C-r will draw a rectangle between
> mark and point, but I
> > can't mark on an empty line.
>
> I am not sure what "can't mark on an empty line"
> means.
> Would you please state a precise test case so I can
> be sure
> I understand?
>
The following is from the discussion in the
gnu.emacs.help newsgroup:
With `transient-mark-mode' t the region becomes
inactive when you move to a buffer position that is
not yet created by `picture-mode'?
C-f/C-b/C-n/C-p should automatically insert spaces to
extend short lines when necessary. This does not
happen.
I hope the above description is clarifies the problem.
Sincerely,
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-26 2:40 ` Duke Patterson
@ 2002-06-26 22:25 ` Richard Stallman
2002-06-29 12:42 ` Duke Patterson
0 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2002-06-26 22:25 UTC (permalink / raw)
Cc: emacs-devel
With `transient-mark-mode' t the region becomes
inactive when you move to a buffer position that is
not yet created by `picture-mode'?
C-f/C-b/C-n/C-p should automatically insert spaces to
extend short lines when necessary. This does not
happen.
I hope the above description is clarifies the problem.
Alas, it doesn't. What I need is a precise test case telling me
exactly what to type so I can observe the problem.
Please read the Bugs section in the Emacs manual, which provides
guidelines on how to write a bug report to give us the
necessary information so we can fix the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-26 22:25 ` Richard Stallman
@ 2002-06-29 12:42 ` Duke Patterson
2002-06-29 14:21 ` Paul Stoeber
0 siblings, 1 reply; 10+ messages in thread
From: Duke Patterson @ 2002-06-29 12:42 UTC (permalink / raw)
Cc: emacs-devel
--- Richard Stallman <rms@gnu.org> wrote:
> With `transient-mark-mode' t the region becomes
> inactive when you move to a buffer position that
> is
> not yet created by `picture-mode'?
>
> C-f/C-b/C-n/C-p should automatically insert
> spaces to
> extend short lines when necessary. This does not
> happen.
>
> I hope the above description is clarifies the
> problem.
>
> Alas, it doesn't. What I need is a precise test
> case telling me
> exactly what to type so I can observe the problem.
>
> Please read the Bugs section in the Emacs manual,
> which provides
> guidelines on how to write a bug report to give us
> the
> necessary information so we can fix the bug.
Open a new buffer and type M-x picture-mode.
Press C-SPC to mark the current position.
Now, attempt to extend the marked region to the
rectangle size you desire with the following command:
C-f C-f C-f
C-n C-n C-n
This should've marked a region. Now
C-c C-r should create a rectangle.
This _doesn't_ happen.
Sincerely,
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-29 12:42 ` Duke Patterson
@ 2002-06-29 14:21 ` Paul Stoeber
2002-06-29 14:35 ` Paul Stoeber
0 siblings, 1 reply; 10+ messages in thread
From: Paul Stoeber @ 2002-06-29 14:21 UTC (permalink / raw)
Cc: emacs-devel
On Sat, Jun 29, 2002 at 05:42:25AM -0700, Duke Patterson wrote:
> Open a new buffer and type M-x picture-mode.
>
> Press C-SPC to mark the current position.
>
> Now, attempt to extend the marked region to the
> rectangle size you desire with the following command:
>
> C-f C-f C-f
> C-n C-n C-n
>
> This should've marked a region. Now
>
> C-c C-r should create a rectangle.
>
> This _doesn't_ happen.
Emacs 21.2.1 doesn't have this problem.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-29 14:21 ` Paul Stoeber
@ 2002-06-29 14:35 ` Paul Stoeber
2002-06-30 20:53 ` Richard Stallman
0 siblings, 1 reply; 10+ messages in thread
From: Paul Stoeber @ 2002-06-29 14:35 UTC (permalink / raw)
Cc: emacs-devel
On Sat, Jun 29, 2002 at 02:21:17PM +0000, Paul Stoeber wrote:
> On Sat, Jun 29, 2002 at 05:42:25AM -0700, Duke Patterson wrote:
> > Open a new buffer and type M-x picture-mode.
> >
> > Press C-SPC to mark the current position.
> >
> > Now, attempt to extend the marked region to the
> > rectangle size you desire with the following command:
> >
> > C-f C-f C-f
> > C-n C-n C-n
> >
> > This should've marked a region. Now
> >
> > C-c C-r should create a rectangle.
> >
> > This _doesn't_ happen.
>
> Emacs 21.2.1 doesn't have this problem.
But if you set `transient-mark-mode' to `t',
then Emacs 21.2.1 _does_ have this problem.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-29 14:35 ` Paul Stoeber
@ 2002-06-30 20:53 ` Richard Stallman
2002-07-15 2:40 ` Duke Patterson
0 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2002-06-30 20:53 UTC (permalink / raw)
Cc: sigserv, emacs-devel
Does this fix it?
*** picture.el.~1.39.~ Sat Mar 9 23:03:34 2002
--- picture.el Sun Jun 30 14:06:14 2002
***************
*** 106,117 ****
(interactive "p\nd")
(picture-update-desired-column interactive)
(setq picture-desired-column (max 0 (+ picture-desired-column arg)))
! (let ((current-column (move-to-column picture-desired-column t)))
! (if (and (> current-column picture-desired-column)
! (< arg 0))
! ;; It seems that we have just tried to move to the right
! ;; column of a multi-column character.
! (forward-char -1))))
(defun picture-backward-column (arg &optional interactive)
"Move cursor left, making whitespace if necessary.
--- 106,118 ----
(interactive "p\nd")
(picture-update-desired-column interactive)
(setq picture-desired-column (max 0 (+ picture-desired-column arg)))
! (let (deactivate-mark)
! (let ((current-column (move-to-column picture-desired-column t)))
! (if (and (> current-column picture-desired-column)
! (< arg 0))
! ;; It seems that we have just tried to move to the right
! ;; column of a multi-column character.
! (forward-char -1)))))
(defun picture-backward-column (arg &optional interactive)
"Move cursor left, making whitespace if necessary.
***************
*** 124,134 ****
"Move vertically down, making whitespace if necessary.
With argument, move that many lines."
(interactive "p")
! (picture-update-desired-column nil)
! (picture-newline arg)
! (let ((current-column (move-to-column picture-desired-column t)))
! (if (> current-column picture-desired-column)
! (forward-char -1))))
(defvar picture-vertical-step 0
"Amount to move vertically after text character in Picture mode.")
--- 125,136 ----
"Move vertically down, making whitespace if necessary.
With argument, move that many lines."
(interactive "p")
! (let (deactivate-mark)
! (picture-update-desired-column nil)
! (picture-newline arg)
! (let ((current-column (move-to-column picture-desired-column t)))
! (if (> current-column picture-desired-column)
! (forward-char -1)))))
(defvar picture-vertical-step 0
"Amount to move vertically after text character in Picture mode.")
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: picture mode
2002-06-30 20:53 ` Richard Stallman
@ 2002-07-15 2:40 ` Duke Patterson
0 siblings, 0 replies; 10+ messages in thread
From: Duke Patterson @ 2002-07-15 2:40 UTC (permalink / raw)
Cc: emacs-devel
--- Richard Stallman <rms@gnu.org> wrote:
> Does this fix it?
>
Yes, this patch fixes it! Thanks a lot! It wouldn't
apply cleanly to my version of picture.el (emacs
21.1), so I had to apply the changes by hand.
Sincerely,
> *** picture.el.~1.39.~ Sat Mar 9 23:03:34
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-07-15 2:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-25 23:32 picture mode Richard Stallman
2002-06-26 2:40 ` Duke Patterson
2002-06-26 22:25 ` Richard Stallman
2002-06-29 12:42 ` Duke Patterson
2002-06-29 14:21 ` Paul Stoeber
2002-06-29 14:35 ` Paul Stoeber
2002-06-30 20:53 ` Richard Stallman
2002-07-15 2:40 ` Duke Patterson
[not found] <m2elewje7n.fsf@localhost.purdue.edu>
2002-06-25 2:39 ` Miles Bader
2002-06-25 2:39 ` Miles Bader
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.