From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.bugs Subject: bug#17379: 24.3.90.1 pretest: (ag-get-arg 0) somehow returns nil in the middle of advice Date: Wed, 30 Apr 2014 22:58:41 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1398913156 3500 80.91.229.3 (1 May 2014 02:59:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 02:59:16 +0000 (UTC) To: 17379@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 01 04:59:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfhDI-0002Bc-VY for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 May 2014 04:59:09 +0200 Original-Received: from localhost ([::1]:60126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhDI-00013U-Ik for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 22:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhDE-00013G-BT for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfhDD-0002vb-CP for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:59:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhDD-0002vB-5n for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WfhDC-00018S-S8 for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Le Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 May 2014 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17379 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.13989131354338 (code B ref -1); Thu, 01 May 2014 02:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 May 2014 02:58:55 +0000 Original-Received: from localhost ([127.0.0.1]:46943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfhD4-00017u-PH for submit@debbugs.gnu.org; Wed, 30 Apr 2014 22:58:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39165) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WfhD1-00017c-SB for submit@debbugs.gnu.org; Wed, 30 Apr 2014 22:58:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfhCv-0002tE-OR for submit@debbugs.gnu.org; Wed, 30 Apr 2014 22:58:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhCv-0002tA-LR for submit@debbugs.gnu.org; Wed, 30 Apr 2014 22:58:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhCu-00011L-Or for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:58:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfhCt-0002sx-Py for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:58:44 -0400 Original-Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:39023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfhCt-0002sr-I0 for bug-gnu-emacs@gnu.org; Wed, 30 Apr 2014 22:58:43 -0400 Original-Received: by mail-we0-f174.google.com with SMTP id k48so2480454wev.5 for ; Wed, 30 Apr 2014 19:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sEtQ0nIsfHyMm9ywLFunwed9TfKQjsIPQknfkBeVsZU=; b=ofm6VPHeHU+Z4QzCoO/p2f/jWVyk1l62yhmzzfc7JuK3owDV6uQTGmGfwVSI7rh07x guzZk3LuW5gOEQ3SH5coEHAK19PcGc+8lQQiWPj7dIbXlG0XbcTEQYmfxo1spj2AEAU1 vTzEV2V3EuyyTl3lwhS4mEigj/zG53PqDW03krKo1O1nKk8uO+nkIk9nSq6VWd11dhex YlN28jxUQoYQ3caSzWD6v1+QtO2n6PNbr54IsX+P+c1tfdoTK31+BuS/UhXJzrl6fa9M bJGoyjPZ2gOVvq+u1DOw5+xd87sIu/id5Jd+wCfv/JGj8Hd92947i7vHeyYnozcV1coH OulA== X-Received: by 10.180.93.133 with SMTP id cu5mr94253wib.47.1398913121802; Wed, 30 Apr 2014 19:58:41 -0700 (PDT) Original-Received: by 10.216.157.200 with HTTP; Wed, 30 Apr 2014 19:58:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88484 Archived-At: Ok the repro steps are very specific. I've tried to make a simpler repro, but could not with the time I had. The important 2 line of code is here: https://github.com/lewang/flx/blob/test-bug-report/flx-ido.el#L226-227 The advice around it is very basic. The only interesting thing is after (setq test (ad-get-arg 0)) test is nil, but original-items is correct. ----------------------------------------------------- Repro steps 1. clone git@github.com:lewang/flx.git 2. switch to branch "test-bug-report" 3. open "flx-ido.el" 4. follow installation instructions: in header https://github.com/lewang/flx/blob/test-bug-report/flx-ido.el#L48-54 5. press "C-x b" 6. Look at "*Messages*" buffer. The advice isn't complicated I have no idea what's going on there. -- Le