unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#158: Etags completion problem for local tags table
@ 2008-05-29 21:36 Stefan Monnier
  2008-05-30  7:34 ` Francesco Potorti`
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-05-29 21:36 UTC (permalink / raw)
  To: 158

> In (at least) emacs 22.1, completing reads for find-tag and list-tags
> will use the global tags table list even if a local tags file has
> been specified using a prefix argument for visit-tags-table.

I believe this has already been fixed in the Emacs-23 CVS repository.
Could you check it?

About the other problems you mentioned, I don't understand enough of
etags.el's handling of tags-table-list to know what is done on purpose,
what is a limitation, and what is a bug.  Francesco?


        Stefan






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

* bug#158: Etags completion problem for local tags table
  2008-05-29 21:36 bug#158: Etags completion problem for local tags table Stefan Monnier
@ 2008-05-30  7:34 ` Francesco Potorti`
  2008-05-30 13:39   ` Stefan Monnier
  2008-05-30 13:42   ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Francesco Potorti` @ 2008-05-30  7:34 UTC (permalink / raw)
  To: Stefan Monnier, 158; +Cc: Emacs Bugs

>> In (at least) emacs 22.1, completing reads for find-tag and list-tags
>> will use the global tags table list even if a local tags file has
>> been specified using a prefix argument for visit-tags-table.
>
>I believe this has already been fixed in the Emacs-23 CVS repository.
>Could you check it?
>
>About the other problems you mentioned, I don't understand enough of
>etags.el's handling of tags-table-list to know what is done on purpose,
>what is a limitation, and what is a bug.  Francesco?

I am not sure what are "the other problems ... mentioned".  Anyway,
regarding the relationship between tags-file-name and tags-table-list, I
always found it confusing.  I see three documentation problems:

First, the help for both variables says that if you set one, you should
not set the other, which is not clear: should one set one or the other?

Second, neither help mentions the visit-tags-table function, which I
think should be the only way to set those variables interactively.

Third, there is no single place where the relationships between the two
variables are described.






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

* bug#158: Etags completion problem for local tags table
  2008-05-30  7:34 ` Francesco Potorti`
@ 2008-05-30 13:39   ` Stefan Monnier
  2008-05-30 13:42   ` Stefan Monnier
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2008-05-30 13:39 UTC (permalink / raw)
  To: Francesco Potorti`; +Cc: Emacs Bugs, 158

> I am not sure what are "the other problems ... mentioned".  Anyway,

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=158


        Stefan







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

* bug#158: Etags completion problem for local tags table
  2008-05-30  7:34 ` Francesco Potorti`
  2008-05-30 13:39   ` Stefan Monnier
@ 2008-05-30 13:42   ` Stefan Monnier
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2008-05-30 13:42 UTC (permalink / raw)
  To: Francesco Potorti`; +Cc: Emacs Bugs, 158

owner 158
thanks

Sorry, I thought you were the maintainer of etags.el.


        Stefan






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

* bug#158: Etags completion problem for local tags table
       [not found] <mailman.7663.1203474863.18990.bug-gnu-emacs@gnu.org>
@ 2016-02-29  5:00 ` Lars Ingebrigtsen
  2016-02-29 14:58   ` Radey Shouman
  2016-11-22 18:23 ` Josiah Schwab
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-29  5:00 UTC (permalink / raw)
  To: Radey Shouman; +Cc: gnu-emacs-bug, 158

Radey Shouman <shouman@comcast.net> writes:

> In (at least) emacs 22.1, completing reads for find-tag and list-tags
> will use the global tags table list even if a local tags file has
> been specified using a prefix argument for visit-tags-table.
>
> To reproduce, visit two files, in the first buffer visit a tags file
> globally, in the second a different tags file locally.  From the
> second buffer, try M.[TAB] .  The tag list displayed will correspond
> to the first, globally visited, tags file.
>
> A patch that works for me is appended.

This area of Emacs has changed quite a bit, especially in recent years.
Is this still an issue in Emacs 25?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#158: Etags completion problem for local tags table
  2016-02-29  5:00 ` Lars Ingebrigtsen
@ 2016-02-29 14:58   ` Radey Shouman
  0 siblings, 0 replies; 7+ messages in thread
From: Radey Shouman @ 2016-02-29 14:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: gnu-emacs-bug, 158, Radey Shouman

Lars Ingebrigtsen writes:
 > Radey Shouman <shouman@comcast.net> writes:
 > 
 > > In (at least) emacs 22.1, completing reads for find-tag and list-tags
 > > will use the global tags table list even if a local tags file has
 > > been specified using a prefix argument for visit-tags-table.
 > >
 > > To reproduce, visit two files, in the first buffer visit a tags file
 > > globally, in the second a different tags file locally.  From the
 > > second buffer, try M.[TAB] .  The tag list displayed will correspond
 > > to the first, globally visited, tags file.
 > >
 > > A patch that works for me is appended.
 > 
 > This area of Emacs has changed quite a bit, especially in recent years.
 > Is this still an issue in Emacs 25?

I don't know.  I am not an emacs developer and haven't used a pre-release
emacs recently.

Neither do I remember submitting this bug report, how old is it?

It doesn't sound hard to test for someone who does have emacs 25 built.





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

* bug#158: Etags completion problem for local tags table
       [not found] <mailman.7663.1203474863.18990.bug-gnu-emacs@gnu.org>
  2016-02-29  5:00 ` Lars Ingebrigtsen
@ 2016-11-22 18:23 ` Josiah Schwab
  1 sibling, 0 replies; 7+ messages in thread
From: Josiah Schwab @ 2016-11-22 18:23 UTC (permalink / raw)
  To: 158; +Cc: Radey Shouman

Hello,

> It doesn't sound hard to test for someone who does have emacs 25
> built.

I have been able to reproduce this bug under emacs 25.1 and git master
(at c542fab).  Here are the steps to reproduce.

For simplicity, I am using two very minimal tags files (fruits/TAGS and
vegetables/TAGS) available from

  https://github.com/jschwab/emacs-tags-issues

but any tags files ought to do.

Open emacs with emacs -Q

Do
,----
| C-x C-f file1
| M-: (visit-tags-table "fruits/TAGS")
| M-. [TAB]
`----

The possible completions offered will be fruits, as expected.

Continue by doing
,----
| C-x C-f file2
| M-: (visit-tags-table "vegetables/TAGS" t)
`----

The user is prompted, "Keep current list of tags tables also? (y or
n)".  Reply n.

Now do
,----
| M-. [TAB]
`----

The possible completions offered will be fruits and not vegetables as
expected.

After this, the *Messages* buffer looks like
,----
| (New file)
| Starting a new list of tags tables
| "/home/jschwab/Software/emacs-tags-issues/fruits/TAGS"
| Making tags completion table for /home/jschwab/Software/emacs-tags-issues/fruits/TAGS...done
| Making completion list...
| Quit
| (New file)
| Keep current list of tags tables also? (y or n) n
| Starting a new list of tags tables
| "/home/jschwab/Software/emacs-tags-issues/vegetables/TAGS"
| Making tags completion table for /home/jschwab/Software/emacs-tags-issues/vegetables/TAGS...
| Making tags completion table for /home/jschwab/Software/emacs-tags-issues/fruits/TAGS...
| Making tags completion table for /home/jschwab/Software/emacs-tags-issues/vegetables/TAGS...done
| Making completion list...
| Quit
`----

It seems like this issue could be related to

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19741

Josiah





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

end of thread, other threads:[~2016-11-22 18:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 21:36 bug#158: Etags completion problem for local tags table Stefan Monnier
2008-05-30  7:34 ` Francesco Potorti`
2008-05-30 13:39   ` Stefan Monnier
2008-05-30 13:42   ` Stefan Monnier
     [not found] <mailman.7663.1203474863.18990.bug-gnu-emacs@gnu.org>
2016-02-29  5:00 ` Lars Ingebrigtsen
2016-02-29 14:58   ` Radey Shouman
2016-11-22 18:23 ` Josiah Schwab

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