From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=E4=B8=AD=E5=B7=9D=E8=AA=A0?= Newsgroups: gmane.emacs.bugs Subject: bug#698: regexp problem in ldap.el Date: Tue, 12 Aug 2008 13:04:40 +0900 (JST) Message-ID: <31147069.79401218513880311.gha03025@nifty.ne.jp> Reply-To: =?UTF-8?Q?=E4=B8=AD=E5=B7=9D=E8=AA=A0?= , 698@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218669377 1299 80.91.229.12 (13 Aug 2008 23:16:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 23:16:17 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 01:17:08 2008 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.50) id 1KTPaV-0004oJ-Ct for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 01:17:07 +0200 Original-Received: from localhost ([127.0.0.1]:52673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTPZY-0004Z9-Re for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 19:16:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSlTl-0006SP-AK for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:27:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSlTj-0006Q6-9Y for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:27:28 -0400 Original-Received: from [199.232.76.173] (port=34908 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSlTj-0006Pw-5O for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:27:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36800) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSlTi-0003nx-NW for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:27:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7C4ROPq012658; Mon, 11 Aug 2008 21:27:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7C4F3E8008460; Mon, 11 Aug 2008 21:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: =?UTF-8?Q?=E4=B8=AD=E5=B7=9D=E8=AA=A0?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 12 Aug 2008 04:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 698 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12185139085694 (code B ref -1); Tue, 12 Aug 2008 04:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Aug 2008 04:05:08 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7C453wV004903 for ; Mon, 11 Aug 2008 21:05:04 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSl82-0001Ch-UL for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:05:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSl7y-00012y-3u for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:05:02 -0400 Original-Received: from [199.232.76.173] (port=33159 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSl7x-00012q-Uv for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:04:57 -0400 Original-Received: from pxy2nd.nifty.com ([202.248.175.14]:2985) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KSl7x-0000LR-7E for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 00:04:57 -0400 Original-Received: (qmail 5784 invoked from network); Tue, 12 Aug 2008 13:04:40 +0900 X-Nifty-SrcIP: [172.22.106.152] Original-Received: from unknown (HELO aps508) (172.22.106.152) by smb515.nifty.com with SMTP; Tue, 12 Aug 2008 13:04:40 +0900 X-Priority: 3 X-MSMail-Priority: Normal Priority: normal X-Mailer: @nifty Webmail 2.0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 12 Aug 2008 00:27:28 -0400 X-Mailman-Approved-At: Wed, 13 Aug 2008 19:15:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:19395 Archived-At: According to the rfc4512, \w is not good to match against attribute type and options. With the attached patch, options containing hyphens are successfully parsed. P.S. I submitted a bug report about regexp in ldap-search-internal last December, but now I understand that it was a mistake. ---- patch from here ---- --- ldap.orig.el 2008-08-09 08:04:07.000000000 +0900 +++ ldap.el 2008-08-09 22:37:05.000000000 +0900 @@ -582,9 +582,9 @@ (end-of-line) (point)))) (forward-line 1) - (while (looking-at "^\\(\\w*\\)\\(;\\w*\\)?[=:\t ]+\\(<[\t ]*file :\ //\\)\\(.*\\)$") + (while (looking-at "^\\([A-Za-z][-A-Za-z0-9]*\\|[0-9]+\\(\\.[0-9]+\\ )\ *\\)\\(;[-A-Za-z0-9]+\\)*[=:\t ]+\\(<[\t ]*file://\\)\\(.*\\)$") (setq name (match-string 1) - value (match-string 4)) + value (match-string 5)) ;; Need to handle file:///D:/... as g\ enerated by OpenLDAP ;; on DOS/Windows as local files. (if (and (memq system-type '(windows-nt ms-dos)) ---- patch ends here ----