Gnus development mailing list
 help / color / mirror / Atom feed
* Search bbdb fails with "let: Invalid function: (bbdb-records)"
@ 2018-06-04 13:36 Adam Sjøgren
  2018-06-04 14:53 ` Emanuel Berg
  2018-06-04 19:57 ` Adam Sjøgren
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Sjøgren @ 2018-06-04 13:36 UTC (permalink / raw)
  To: ding

Recently, when I go M-x bbdb and type in a string to search for, Emacs
has started saying:

    Invalid function: (bbdb-records)

instead of showing the results.

As far as I can tell, the problem is in the "bbdb-search"-line in bbdb:

    (defun bbdb (string elidep)
      "Display all entries in the BBDB matching the regexp STRING
    in either the name(s), company, network address, or notes."
      (interactive
       (list (bbdb-search-prompt "Search records %m regexp: ")
             current-prefix-arg))
      (let* ((bbdb-display-layout (bbdb-grovel-elide-arg elidep))
             (notes (cons '* string))
             (records
              (bbdb-search (bbdb-records) string string string notes
                           nil)))
        (if records
            (bbdb-display-records records)
          ;; we could use error here, but it's not really an error.
          (message "No records matching '%s'" string))))

from bbdb-com.el.

I've tried guessing on and performing random changes, but haven't found
anything that works.

Any ideas?

This is using GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, GTK+
Version 3.22.30) of 2018-05-29 built from git, and bbdb 2.36-4.1 as
packaged in Debian unstable.


  Best regards,

    Adam

-- 
 "En nordmand vælter sin Grand Marnier i Lucca"               Adam Sjøgren
                                                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Search bbdb fails with "let: Invalid function: (bbdb-records)"
  2018-06-04 13:36 Search bbdb fails with "let: Invalid function: (bbdb-records)" Adam Sjøgren
@ 2018-06-04 14:53 ` Emanuel Berg
  2018-06-04 19:57 ` Adam Sjøgren
  1 sibling, 0 replies; 3+ messages in thread
From: Emanuel Berg @ 2018-06-04 14:53 UTC (permalink / raw)
  To: ding

Adam Sjøgren wrote:

> (bbdb-search (bbdb-records) string string
> string notes nil)

"string" three times? Isn't that redundant
redundancy according to database normalization
theory and relational/set algebra?

Also, isn't it (somewhat) poor style to have
string as an argument name as it is also
a primitive function, `string' ?

-- 
underground experts united
http://user.it.uu.se/~embe8573




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Search bbdb fails with "let: Invalid function: (bbdb-records)"
  2018-06-04 13:36 Search bbdb fails with "let: Invalid function: (bbdb-records)" Adam Sjøgren
  2018-06-04 14:53 ` Emanuel Berg
@ 2018-06-04 19:57 ` Adam Sjøgren
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Sjøgren @ 2018-06-04 19:57 UTC (permalink / raw)
  To: ding

Adam writes:

> Recently, when I go M-x bbdb and type in a string to search for, Emacs
> has started saying:
>
>     Invalid function: (bbdb-records)

...

> bbdb 2.36-4.1 as packaged in Debian unstable.

I switched to bbdb3 (3.2-3), and after changing (require 'bbdb) to
(require 'bbdb-loaddefs) the M-x bbdb command works again.


  Best regards,

    Adam

-- 
 "This German waltz is not as elegant as the ones from        Adam Sjøgren
  Vienna. But it is louder."                             asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-04 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-04 13:36 Search bbdb fails with "let: Invalid function: (bbdb-records)" Adam Sjøgren
2018-06-04 14:53 ` Emanuel Berg
2018-06-04 19:57 ` Adam Sjøgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).