unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* find-tag and partial completion mode
@ 2007-05-01 11:21 A Soare
  2007-05-02  7:56 ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: A Soare @ 2007-05-01 11:21 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

1. Emacs -Q

2. M-x partial-completion-mode

3. M-. re-fr-st <M-TAB> Insert the path to your TAGS of emacs. <RET>

No symbol found. However there is read-from-string.

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

* Re: find-tag and partial completion mode
  2007-05-01 11:21 A Soare
@ 2007-05-02  7:56 ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2007-05-02  7:56 UTC (permalink / raw)
  To: alinsoar; +Cc: Emacs Dev [emacs-devel]

A Soare wrote:

> 1. Emacs -Q
>
> 2. M-x partial-completion-mode
>
> 3. M-. re-fr-st <M-TAB> Insert the path to your TAGS of emacs. <RET>
>
> No symbol found. However there is read-from-string.

Press TAB, not M-TAB.

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

* Re: find-tag and partial completion mode
@ 2007-05-02 10:57 A Soare
  0 siblings, 0 replies; 7+ messages in thread
From: A Soare @ 2007-05-02 10:57 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs   Dev  [emacs-devel]




> Message du 02/05/07 à 09h59
> De : "Glenn Morris" <rgm@gnu.org>
> A : alinsoar@voila.fr
> Copie à : "Emacs Dev [emacs-devel]" <emacs-devel@gnu.org>
> Objet : Re: find-tag and partial completion mode
> 
> A Soare wrote:
> 
> > 1. Emacs -Q
> >
> > 2. M-x partial-completion-mode
> >
> > 3. M-. re-fr-st <M-TAB> Insert the path to your TAGS of emacs. <RET>
> >
> > No symbol found. However there is read-from-string.
> 
> Press TAB, not M-TAB.
> 
> 

It does not matter what I press. Look at the output in the *messages* :

find-tag-tag: Command attempted to use minibuffer while in minibuffer
next-history-element: Beginning of history; no preceding item
/gnu/emacs/src/TAGS and /gnu/emacs/TAGS are the same file
Starting a new list of tags tables
Making tags completion table for /gnu/emacs/TAGS...
/gnu/emacs/src/TAGS and /gnu/emacs/TAGS are the same file [2 times]
visit-tags-table-buffer: File /gnu/lwlib/TAGS is not a valid tags table
Making tags completion table for /gnu/emacs/TAGS...
visit-tags-table-buffer: File /gnu/lwlib/TAGS is not a valid tags table

No symbol found.

I used and compiled the CVS sources from yesterday , 1st may.

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

* Re: find-tag and partial completion mode
@ 2007-05-02 11:02 A Soare
  2007-05-02 17:44 ` find-tag and partial completion mode -- Francisco, urgent! Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: A Soare @ 2007-05-02 11:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs   Dev  [emacs-devel]

> A Soare wrote:
> 
> > 1. Emacs -Q
> >
> > 2. M-x partial-completion-mode
> >
> > 3. M-. re-fr-st <M-TAB> Insert the path to your TAGS of emacs. <RET>
> >
> > No symbol found. However there is read-from-string.
> 
> Press TAB, not M-TAB.
> 
> 

That is. I solved it. I have emacs installed in /gnu/emacs/ and I used a soft link from /gnu/emacs/src/TAGS to /gnu/emacs/TAGS.

in TAGS there is a line 

../lwlib//TAGS,include

and from here the error was born.


Now it is clear.

So in the actual form if we can try to use a soft-ling to the TAGS files, tags do not work any longer.


Alin Soare.

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

* Re: find-tag and partial completion mode -- Francisco, urgent!
  2007-05-02 11:02 find-tag and partial completion mode A Soare
@ 2007-05-02 17:44 ` Richard Stallman
  2007-05-02 20:13   ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2007-05-02 17:44 UTC (permalink / raw)
  To: alinsoar; +Cc: rgm, pot, emacs-devel

Francisco, what do you think of this issue?


    in TAGS there is a line 

    ../lwlib//TAGS,include

    and from here the error was born.

Please try changing that line to

    ../lwlib/TAGS,include

Does that make it work?

Remember that in Emacs // has a special meaning.
Perhaps etags.el should remove the duplicate / to prevent
that Emacs meaning from being applied.

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

* Re: find-tag and partial completion mode -- Francisco, urgent!
  2007-05-02 20:13   ` Glenn Morris
@ 2007-05-02 20:02     ` Tom Tromey
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Tromey @ 2007-05-02 20:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: alinsoar, pot, rms, emacs-devel

>>>>> "GM" == Glenn Morris <rgm@gnu.org> writes:

>> in TAGS there is a line 
>> ../lwlib//TAGS,include
>> and from here the error was born.

GM> The "issue" is just that if you have a file which contains a line
GM> like:
GM>   include ../foo
GM> and you access the file through a symlink from a different directory,
GM> then ../foo (probably) does not exist.

GM> The solution is just to not access the TAGS file through a symlink
GM> (something which there is no need to do).

The original poster's problem can be solved by using the etags -i
feature instead of making a symlink.  I.e., rather than:

    ln -s src/TAGS TAGS

use

    etags -i src/TAGS

Tom

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

* Re: find-tag and partial completion mode -- Francisco, urgent!
  2007-05-02 17:44 ` find-tag and partial completion mode -- Francisco, urgent! Richard Stallman
@ 2007-05-02 20:13   ` Glenn Morris
  2007-05-02 20:02     ` Tom Tromey
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-05-02 20:13 UTC (permalink / raw)
  To: rms; +Cc: alinsoar, pot, emacs-devel


>     in TAGS there is a line 
>
>     ../lwlib//TAGS,include
>
>     and from here the error was born.

The "issue" is just that if you have a file which contains a line
like:

  include ../foo

and you access the file through a symlink from a different directory,
then ../foo (probably) does not exist.

The solution is just to not access the TAGS file through a symlink
(something which there is no need to do). Or put the absolute path in
the TAGS file (which is then fragile if you want to move the sources
somewhere else). That means changing the TAGS target in src/Makefile
to specify an absolute path to lwlib rather than a relative one. No
point, IMO.

For some reason, this has turned back into Alin's previous "lwlib"
thread, but now disguised as a partial-completion issue.

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

end of thread, other threads:[~2007-05-02 20:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 11:02 find-tag and partial completion mode A Soare
2007-05-02 17:44 ` find-tag and partial completion mode -- Francisco, urgent! Richard Stallman
2007-05-02 20:13   ` Glenn Morris
2007-05-02 20:02     ` Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2007-05-02 10:57 find-tag and partial completion mode A Soare
2007-05-01 11:21 A Soare
2007-05-02  7:56 ` 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).