From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gurce Newsgroups: gmane.emacs.bugs Subject: bug#8299: po-mode faulty? Date: Sun, 20 Mar 2011 14:42:09 +1100 Message-ID: <20110320034209.78YBT.27888.root@nschwwebs02p> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300603807 30540 80.91.229.12 (20 Mar 2011 06:50:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 06:50:07 +0000 (UTC) To: 8299@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 07:50:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1CSF-0006cL-Kh for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 07:50:02 +0100 Original-Received: from localhost ([127.0.0.1]:45348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1CS8-0004Ie-SZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 02:49:28 -0400 Original-Received: from [140.186.70.92] (port=47666 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1ArA-0002A2-M8 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 01:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1Ar9-0005jW-D2 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 01:07:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1Ar9-0005jS-AB for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 01:07:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q1AXe-0001Qw-4D; Sun, 20 Mar 2011 00:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gurce Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2011 04:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13005963645435 (code B ref -1); Sun, 20 Mar 2011 04:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2011 04:46:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1AWg-0001PZ-RV for submit@debbugs.gnu.org; Sun, 20 Mar 2011 00:46:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q19X6-0008Ua-JS for submit@debbugs.gnu.org; Sat, 19 Mar 2011 23:42:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q19X0-0002nf-Dn for submit@debbugs.gnu.org; Sat, 19 Mar 2011 23:42:19 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:45499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q19X0-0002nZ-80 for submit@debbugs.gnu.org; Sat, 19 Mar 2011 23:42:18 -0400 Original-Received: from [140.186.70.92] (port=36719 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q19Wz-0001Z4-0X for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q19Wx-0002n9-Oj for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:42:16 -0400 Original-Received: from nschwmtas01p.mx.bigpond.com ([61.9.189.137]:44217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q19Wx-0002mu-FV for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2011 23:42:15 -0400 Original-Received: from nschwotgx02p.mx.bigpond.com ([61.9.190.12]) by nschwmtas01p.mx.bigpond.com with ESMTP id <20110320034210.HIWB2253.nschwmtas01p.mx.bigpond.com@nschwotgx02p.mx.bigpond.com> for ; Sun, 20 Mar 2011 03:42:10 +0000 Original-Received: from nschwwebs02p ([61.9.190.12]) by nschwotgx02p.mx.bigpond.com with ESMTP id <20110320034209.KUOF13035.nschwotgx02p.mx.bigpond.com@nschwwebs02p> for ; Sun, 20 Mar 2011 03:42:09 +0000 Original-Received: X-Priority: 3 (Normal) Sensitivity: Normal X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150202.4D857791.0105,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 20 Mar 2011 00:46:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 20 Mar 2011 00:47:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 20 Mar 2011 02:49:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45185 Archived-At: Hi there, I recently joined a software project that has been using .po files for multi-lingual string support. While reading up on this format, I learnt that emacs has a "po-mode" to support in the editing of these .po files. I started reading the online documentation regarding the 'gettext' facility (which makes many mentions of emacs and the facilities it provides for .po file editing). But on this the following page, I encountered a few problems: http://punt.sourceforge.net/new_svn/gettext/gettext_3.html In section "3.4 Marking Translatable Strings", it suggests to: 1) Generate the TAGS file for your source via the "etags" tools 2) create a new PO file with emacs, and then emacs can let you browse through all strings in your code via the ',' key. As you scan each potential string one-by-one, if you decide that it should be a multi-lingual string, you then press 'M-,' which will automatically add the "_()" marker around the string in the source code, and also automatically add a msgstr key for you in your .po file. This sounds like a really handy feature. I tried to follow these steps, generated the TAGS file fine, but that 2nd step doesn't seem to work. When I press the ',' key, emacs spends a minute scanning through all the source code, then opens one, but highlighting no string within it. This surprised me a little, so I tried these steps out on a simple 'hello world' c example instead. When I tried steps 1 and 2 on it, it failed on step 2, no string was highlighted (I was hoping it would highlight the 'Hello World' within the printf). By chance, I happened to have an older fedora core 4 pc on me, I tried the simple 'hello world' c example, along with steps 1 and 2, and surprisingly it worked! The "Hello World" string within the printf statement was highlighted, and I was able to add it into the po file via 'M-,'. So I'm now starting to suspect that perhaps something broke in this behaviour for newer versions of emacs? So summarising what I saw regarding po-mode's string searching facility: * fc4 pc has emacs v21.4.1 (works) * opensuse pc has emacs v23.1.1 (doesn't work) So yeah, one aspect of my email was intending to report the problem. But another part of me was curious whether I could examine the issue further myself via the source code, perhaps grabbing it from the cvs repo, version by version, to try see in which version it initially broke, then gauging what changes were made in that version that could have been the culprit. I had a look at the following site regarding cvs access: http://savannah.gnu.org/cvs/?group=emacs With that info, I tried typing in at the console: cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs But got the following response: cvs [checkout aborted]: connect to cvs.savannah.gnu.org(140.186.70.72):2401 failed: Connection timed out So not sure whether I typed something in wrong, or perhaps just unlucky and the server was down. Nonetheless, thought I'd better mention this too. Anyways, hope you can help in any way. Cheers, Gurce