GNU bug report logs - #17379
24.3.90.1 pretest: (ag-get-arg 0) somehow returns nil in the middle of advice

Previous Next

Package: emacs;

Reported by: Le Wang <l26wang <at> gmail.com>

Date: Thu, 1 May 2014 02:59:02 UTC

Severity: normal

Tags: wontfix

Found in version 24.3.90.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Le Wang <l26wang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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
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 <at> 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




This bug report was last modified 11 years and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.