Hi,

Peter Hull wrote:
> I was not able to use the "," (po-tags-search) on a new C project. The
> code scanned through all files (leaving them all open in separate
> buffers) but did not find any translatable strings.
> 
> To test this I set up a simple project with a single C file:
> 
> #include <stdio.h>
> 
> int main(void) {
>   puts("Hello world");
>   return 0;
> }
> 
> I ran 'etags *.' to create the TAGS file.

That should be 'etags *.c', no? [1]

> I ran 'emacs main.po' to start emacs with a new PO file.

I also needed to
  M-x load-file .../po-mode.el
and
  M-x po-mode

> I pressed ','
> 
> Expected result: "Hello world" string highlighted
> Actual result: no text highlighed and 'All files processed' appeared
> on the status line at the bottom.

When I do this (likewise in emacs 24.5.1) I get the prompt
  Visit tags table (default TAGS): /current/dir/
Then after choosing the TAGS file it highlights the string literal
"Hello world".

> Am I using the gettext mode incorrectly or is there a bug in the mode?
> 
> Emacs : version 24.5.1 (from Ubuntu 16.04)
> gettext : 0.19.7-2ubuntu3
> gettext-el : 0.19.7-2ubuntu3
> po-mode-version-string : "2.24"

I'd guess that the TAGS file is somehow incomplete.

Bruno

[1] https://www.gnu.org/software/gettext/manual/html_node/Marking.html


Reply via email to