unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2046: tags-query-replace
       [not found] <4DA4F91B-7ED7-4F3D-B008-FB706977A55C@cs.bu.edu>
@ 2009-01-25 16:33 ` David Reitter
  2009-01-28 23:12   ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2009-01-25 16:33 UTC (permalink / raw)
  To: Bug-Gnu-Emacs

Begin forwarded message:

> From: Peter Gacs <gacs@cs.bu.edu>
> Date: 25 January 2009 11:11:45 EST
> To: "aquamacs-bugs@aquamacs.org Bugs" <aquamacs-bugs@aquamacs.org>
> Subject: [Aquamacs-bugs] (no subject)
>
> Enter your bug report here.
>
> This may be a bug in the current version of GNU emacs, not of
> Aquamacs, and concerns
> tags-search and tags-query-replace, when the document uses several
> files (a TAGS file was created by etags).
> In each file that is being edited, the search/replacement
> starts from the position of the cursor only, and misses the items
> before it.
> This is not intuitive, and seems to be different from the earlier
> behavior of emacs.
>
> In GNU Emacs 22.3.2 (powerpc-apple-darwin9.5.0, Carbon Version 1.6.0)
>  of 2008-09-21 on lucy - Aquamacs Distribution 1.5
> Windowing system distributor `Apple Inc.', version 10.4.11
> configured using `configure  '--without-x' '--prefix=/usr/local''
>
> 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: nil
>   locale-coding-system: iso-8859-1
>   default-enable-multibyte-characters: t
>
> Major mode: PDFLaTeX/F
>
> Minor modes in effect:
>   auto-fill-function: do-auto-fill
>   bib-cite-minor-mode: t
>   reftex-mode: t
>   TeX-fold-mode: t
>   TeX-PDF-mode: t
>   display-time-mode: t
>   savehist-mode: t
>   aquamacs-styles-mode: t
>   smart-frame-positioning-mode: t
>   global-visual-line-mode: t
>   visual-line-mode: t
>   recentf-mode: t
>   encoded-kbd-mode: t
>   osx-key-mode: t
>   tabbar-mwheel-mode: t
>   tabbar-mode: t
>   show-paren-mode: t
>   delete-selection-mode: t
>   pc-selection-mode: t
>   cua-mode: t
>   tooltip-mode: t
>   tool-bar-mode: 0
>   mouse-wheel-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   unify-8859-on-encoding-mode: t
>   utf-translate-cjk-mode: t
>   auto-compression-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> <M-right> <M-backspace> - R e t r i e v e d C-e C-x
> s <switch-frame> M-x t a g SPC M-x t a g s SPC s SPC
> <return> C-g M-x t a g s SPC q SPC r SPC <return> \
> \ f l d { - R e t r i e v e d } <return> \ \ l R e
> t r e <backspace> i e v e d <return> SPC SPC SPC SPC
> SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC
> C-x s A-w C-x s A-w <switch-frame> C-x s C-x C-f l
> o <tab> t <tab> <return> M-< C-s I n f o C-s C-s C-a
> <next> C-s C-s C-a <next> <next> <next> <next> <down>
> <down> <down> <up> <up> <up> <up> <up> <up> <up> C-k
> C-k C-y C-y <up> <M-right> <M-right> <M-backspace>
> l I n f d o <backspace> <backspace> o <M-right> <M-backspace>
> f k l <backspace> <backspace> l e <backspace> d <M-right>
> <M-backspace> - I n f o C-x s M-x t a g SPC q SPC r
> SPC <return> \ \ f l d { - I n f o } <return> \ \ l
> I n f o <return> n SPC SPC SPC SPC SPC SPC SPC SPC
> SPC SPC SPC SPC SPC C-x s C-x k <return> <switch-frame>
> C-x s <switch-frame> C-x s A-w <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <switch-frame>
> <switch-frame> <switch-frame> <switch-frame> <up> <up>
> <up> C-e SPC C-d <down> <down> <down> C-x s M-< M-x
> t a g SPC q SPC r SPC <return> \ \ f l d { - R e t
> r i e v e d } <return> \ \ l R e t r i e v e d <return>
> SPC SPC C-x s <menu-bar> <help-menu> <bug-diagnosis>
> <send-emacs-bug-report>
>
> Recent messages:
> Scanning file /Users/gacs/kut/sorg/cur/germ.tex...
> Scanning file /Users/gacs/kut/sorg/cur/concl.tex...
> Scanning file /Users/gacs/kut/sorg/cur/bibl.tex...
> Scanning file /Users/gacs/kut/sorg/cur/long-ca-ms.glo.ind...
> Scanning file /Users/gacs/kut/sorg/cur/long-ca-ms.ind.ind...
> ad-Orig-error: All files processed
> Wrote /Users/gacs/kut/sorg/cur/cmp.tex
> Sorting environment...
> Removing duplicates... done
> Loading emacsbug...done
>
> Command line: (/Applications/Aquamacs Emacs.app/Contents/MacOS/
> Aquamacs Emacs)
>
> PATH: /Library/Frameworks/Python.framework/Versions/Current/bin:/sw/
> bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/sw/bin:/
> Users/gacs/bin:/usr/X11R6/bin:/usr/bin:/bin:/usr/sbin:/sbin
>
> exec-path: (/Library/Frameworks/Python.framework/Versions/Current/
> bin /sw/bin /sw/sbin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /sw/
> bin /Users/gacs/bin /usr/X11R6/bin /usr/bin /bin /usr/sbin /sbin /
> Applications/Aquamacs Emacs.app/Contents/MacOS/libexec /Applications/
> Aquamacs Emacs.app/Contents/MacOS/bin)
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> __
> https://lists.sourceforge.net/lists/listinfo/aquamacs-bugs








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

* bug#2046: tags-query-replace
  2009-01-25 16:33 ` bug#2046: tags-query-replace David Reitter
@ 2009-01-28 23:12   ` Glenn Morris
  2009-01-31 21:21     ` Peter Gacs
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2009-01-28 23:12 UTC (permalink / raw)
  To: Peter Gacs; +Cc: 2046


> From: Peter Gacs <gacs@cs.bu.edu>
[...]
> concerns tags-search and tags-query-replace, when the document uses
> several files (a TAGS file was created by etags). In each file that
> is being edited, the search/replacement starts from the position of
> the cursor only, and misses the items before it.

This is somewhat vague.

I did:

emacs -Q
M-x tags-search file RET /path/to/TAGS-LISP

   (where TAGS-LISP is as created in the Emacs src/ dir by one of the
   build rules).

This first takes me to abbrev.el.
I press M-, a lot until I get to a new file, add-log.el.

I move point in abbrev.el and add-log.el to the end of the buffer.
I switch to scratch and do M-x tags-search again.
It starts finding results from the beginning of abbrev.el.

Thus, I don't see a problem (in either Emacs 22 or the CVS trunk).






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

* bug#2046: tags-query-replace
  2009-01-28 23:12   ` Glenn Morris
@ 2009-01-31 21:21     ` Peter Gacs
  2012-03-27 22:29       ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Gacs @ 2009-01-31 21:21 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]

>>
>> From: Peter Gacs <gacs@cs.bu.edu>
> [...]
>> concerns tags-search and tags-query-replace, when the document uses
>> several files (a TAGS file was created by etags). In each file that
>> is being edited, the search/replacement starts from the position of
>> the cursor only, and misses the items before it.
>
> This is somewhat vague.


The situation is actually worse.  In my case, tags-query-replace does  
a frequently
a very partial job, even if I delete all buffers involved.
I have a long list of TeX files whose name is listed in a file called  
etags-files.
The TAGS file is created from it using etags `cat etags-files`.
I do a tags-query-replace, and only a few of the replacements will be  
done.
I can save the files involved and repeat the process; after maybe 5-4  
repetitions,
it goes through all.

The total length of the text is fairly large (245 printed pages), and  
I have not tried
to reproduce the behavior on small examples.  But I did not have it  
before Aquamacs.
Whether tags-search or tags-query-replace, pressing "n" for skipping,  
space for replacement and
M-, for resuming starting from point, always produced the expected  
result.

Peter Gacs

>
> I did:
>
> emacs -Q
> M-x tags-search file RET /path/to/TAGS-LISP
>
>    (where TAGS-LISP is as created in the Emacs src/ dir by one of the
>    build rules).
>
> This first takes me to abbrev.el.
> I press M-, a lot until I get to a new file, add-log.el.
>
> I move point in abbrev.el and add-log.el to the end of the buffer.
> I switch to scratch and do M-x tags-search again.
> It starts finding results from the beginning of abbrev.el.
>
> Thus, I don't see a problem (in either Emacs 22 or the CVS trunk).
>


[-- Attachment #2: Type: text/html, Size: 4891 bytes --]

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

* bug#2046: tags-query-replace
  2009-01-31 21:21     ` Peter Gacs
@ 2012-03-27 22:29       ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2012-03-27 22:29 UTC (permalink / raw)
  To: 2046-done


Sorry, nothing can be done without a recipe showing how to reproduce the
problem in GNU Emacs, starting from a clean state.
If you still have the problem and can provide that information, please
reply with it.





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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4DA4F91B-7ED7-4F3D-B008-FB706977A55C@cs.bu.edu>
2009-01-25 16:33 ` bug#2046: tags-query-replace David Reitter
2009-01-28 23:12   ` Glenn Morris
2009-01-31 21:21     ` Peter Gacs
2012-03-27 22:29       ` 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).