home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!m2.dseg.ti.com!lystad
- From: lystad@m2.dseg.ti.com (Garr Lystad)
- Subject: Re: Mark funniness
- Organization: TI DSEG, Spring Creek, Plano, Tx.
- In-Reply-To: grunwald@eclipse.cs.colorado.edu's message of 14 Aug 92 12:05:13
- References: <GRUNWALD.92Aug14120513@eclipse.cs.colorado.edu>
- Message-ID: <LYSTAD.92Aug21094549@m2.dseg.ti.com>
- Reply-To: Garr Lystad <lystad@m2.dseg.ti.com>
- Distribution: alt
- Sender: lystad@m2.dseg.ti.com (Garr Lystad)
- Date: Fri, 21 Aug 1992 15:45:49 GMT
- Lines: 38
-
- In article <GRUNWALD.92Aug14120513@eclipse.cs.colorado.edu> grunwald@eclipse.cs.colorado.edu (Dirk Grunwald) writes:
-
-
- > I am used to using these functions to position on the display...
-
- > (global-set-key "\M-'" 'move-to-window-line)
- > (global-set-key "\M-," '(lambda() (interactive) (move-to-window-line 0)))
- > (global-set-key "\M-." '(lambda() (interactive) (move-to-window-line -1)))
-
- > A normal editing sequence for me is to mark something (\C-spc), move there
- > (possibly using the move-to-window-line keys above) and then e.g, kill it.
-
- > I can't do that in Lucid-19.2 -- it appears the mark gets cleared.
- > Any reason why? Anyone have a plausible fix?
-
- Actually the mark is ok, as you can check by doing C-x C-x to swap
- point and mark. The problem is that the region is not being
- displayed. It appears, from an examination of forward-char and
- move-to-window-line that the problem is that move-to-window-line lacks
- the line
- zmacs_region_stays = 1;
- This may be an oversight. I'm too new at Lucid Emacs (3 days) to know.
-
- If you want to make your commands work by modifying them you can add a
- call to zmacs-activate-region at the end of each function. For example:
-
- (global-set-key "\M-,"
- '(lambda ()
- (interactive)
- (move-to-window-line 0) ;; or 1 or nil
- (zmacs-activate-region) ))
-
- Hope this helps.
- -- Garr
-
- P.S. M-. and M-, already have commands on them that I find very
- useful. They let me answer your question. gsl.
-
-