unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10461: emacs is not a macro-editor
@ 2012-01-09  6:25 andre.desnoyers
  2012-01-10 17:38 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: andre.desnoyers @ 2012-01-09  6:25 UTC (permalink / raw)
  To: 10461

Take un medium file : 4000 lines
Set a match for a search
build the macro
C-a			;; move-beginning-of-line
2*C-k			;; kill-line
C-x C-x			;; exchange-point-and-mark
C-y			;; yank
2*C-s			;; isearch-forward
C-a			;; move-beginning-of-line

this macro normally groups all lines who contain the match.

If two matches are more distant  than about 50 lines the second match  
is not found, but the macro can be repeated !

this bug exists in 22- versions and last 23-version on Mac.







^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#10461: emacs is not a macro-editor
  2012-01-09  6:25 bug#10461: emacs is not a macro-editor andre.desnoyers
@ 2012-01-10 17:38 ` Glenn Morris
  2012-01-12 18:46   ` andre.desnoyers
  2012-02-03  1:05   ` andre.desnoyers
  0 siblings, 2 replies; 5+ messages in thread
From: Glenn Morris @ 2012-01-10 17:38 UTC (permalink / raw)
  To: andre.desnoyers; +Cc: 10461

andre.desnoyers@upmc.fr wrote:

> If two matches are more distant  than about 50 lines the second match
> is not found, but the macro can be repeated !

It seems to work when I tried it.
Can you give a complete example? Attach a (perhaps compressed) example
file, and show exactly what you typed, starting from `emacs -Q', and
what happened.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#10461: emacs is not a macro-editor
  2012-01-10 17:38 ` Glenn Morris
@ 2012-01-12 18:46   ` andre.desnoyers
  2012-02-03  1:05   ` andre.desnoyers
  1 sibling, 0 replies; 5+ messages in thread
From: andre.desnoyers @ 2012-01-12 18:46 UTC (permalink / raw)
  To: Glenn Morris

I think this effect exists on Mac OS with Intel proc. In the past  
version on Fedora Scientific Linux) my macro work on the very big  
files (> 40Mo). It is possible there are conflict with my sartup. I  
see the cursor points in bad line, then it will be a bad section àf  
file which show in window (why?).

So, i prepare a test with your guide line.
    Thank Andrew

> andre.desnoyers@upmc.fr wrote:
>
>> If two matches are more distant  than about 50 lines the second match
>> is not found, but the macro can be repeated !
>
> It seems to work when I tried it.
> Can you give a complete example? Attach a (perhaps compressed) example
> file, and show exactly what you typed, starting from `emacs -Q', and
> what happened.
>









^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#10461: emacs is not a macro-editor
  2012-01-10 17:38 ` Glenn Morris
  2012-01-12 18:46   ` andre.desnoyers
@ 2012-02-03  1:05   ` andre.desnoyers
  2012-02-03 22:34     ` Glenn Morris
  1 sibling, 1 reply; 5+ messages in thread
From: andre.desnoyers @ 2012-02-03  1:05 UTC (permalink / raw)
  To: Glenn Morris

I have forgotten that :
in my problem, file is build with very long lines (frequently 500  
bytes) on Mac Intosh. There are very important difference between  
logical lines (in file) and physical lines (in window).
the X-windows has not good position after execution my macro when two  
consecutive matches are very distant and require a refresh of the  
screen.

Quoting Glenn Morris <rgm@gnu.org>:

> andre.desnoyers@upmc.fr wrote:
>
>> If two matches are more distant  than about 50 lines the second match
>> is not found, but the macro can be repeated !
>
> It seems to work when I tried it.
> Can you give a complete example? Attach a (perhaps compressed) example
> file, and show exactly what you typed, starting from `emacs -Q', and
> what happened.
>









^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#10461: emacs is not a macro-editor
  2012-02-03  1:05   ` andre.desnoyers
@ 2012-02-03 22:34     ` Glenn Morris
  0 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2012-02-03 22:34 UTC (permalink / raw)
  To: 10461; +Cc: andre.desnoyers


(Please keep 10461@debbugs cc'd)

andre.desnoyers@upmc.fr wrote:

> I have forgotten that :
> in my problem, file is build with very long lines (frequently 500
> bytes) on Mac Intosh. There are very important difference between
> logical lines (in file) and physical lines (in window).
> the X-windows has not good position after execution my macro when two
> consecutive matches are very distant and require a refresh of the
> screen.

Then I imagine this is the same issue as
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7046

ie visual-line-mode can affect the way macros behave.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-03 22:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-09  6:25 bug#10461: emacs is not a macro-editor andre.desnoyers
2012-01-10 17:38 ` Glenn Morris
2012-01-12 18:46   ` andre.desnoyers
2012-02-03  1:05   ` andre.desnoyers
2012-02-03 22:34     ` Glenn Morris

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).