GNU bug report logs - #9508
23.2; Phantom result from eudc-expand-inline

Previous Next

Package: emacs;

Reported by: "Goldberg,David S." <dsg <at> mitre.org>

Date: Wed, 14 Sep 2011 17:25:02 UTC

Severity: normal

Found in version 23.2

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Goldberg\,David S." <dsg <at> mitre.org>
Cc: 9508 <at> debbugs.gnu.org
Subject: bug#9508: Phantom result from eudc-expand-inline
Date: Sat, 17 Sep 2011 15:59:01 -0400
"Goldberg,David S." <dsg <at> mitre.org> writes:

> The downside of this patch is that if there is no match, there is no
> obvious feedback to the user.  I thought about only removing the
> initial nil if the length is greater than 1 but that breaks looping on
> a search over multiple attributes.

Does this patch give better results?

=== modified file 'lisp/net/ldap.el'
*** lisp/net/ldap.el	2011-05-10 13:57:12 +0000
--- lisp/net/ldap.el	2011-09-17 19:56:55 +0000
***************
*** 632,640 ****
  	    (setq record (cons (list name value)
  			       record))
  	    (forward-line 1))
! 	  (push (if withdn
! 		    (cons dn (nreverse record))
! 		  (nreverse record)) result)
  	  (setq record nil)
  	  (skip-chars-forward " \t\n")
  	  (message "Parsing results... %d" numres)
--- 632,641 ----
  	    (setq record (cons (list name value)
  			       record))
  	    (forward-line 1))
! 	  (cond (withdn
! 		 (push (cons dn (nreverse record)) result))
! 		(record
! 		 (push (nreverse record) result)))
  	  (setq record nil)
  	  (skip-chars-forward " \t\n")
  	  (message "Parsing results... %d" numres)





This bug report was last modified 13 years and 299 days ago.

Previous Next


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