Re: [bug-gettext] [bug #50830] PO mode does not find any translatable strings when electric-mode is enabled

2017-04-19 Thread Peter Hull
On Wed, Apr 19, 2017 at 10:27 AM, Bruno Haible wrote: > URL: > > > Summary: PO mode does not find any translatable strings when > electric-mode is enabled Thanks, Bruno. The following change fixes it for me (sorry, was not able to attach it

Re: [bug-gettext] Problem with gettext emacs support

2017-04-19 Thread Peter Hull
Might have something here. In po-preset-string-functions (in po-mode.el) there is the following: (let ((pair (cond ... ... ((member mode-name '("C" "C++")) '(po-find-c-string . po-mark-c-string)) ... When my emacs loads C code, electri

Re: [bug-gettext] Problem with gettext emacs support

2017-04-18 Thread Peter Hull
Hi Bruno, Thanks for the swift reply. On Tue, Apr 18, 2017 at 6:24 PM, Bruno Haible wrote: >> I ran 'etags *.' to create the TAGS file. > > That should be 'etags *.c', no? [1] Correct. Sorry, I mis-typed the email. I did enter 'etags *.c' (just re-did it now to check.) I think the TAGS file is OK

[bug-gettext] Problem with gettext emacs support

2017-04-18 Thread Peter Hull
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 int main(void) { puts("Hello world