2

This is the result of M-: (elfeed-search-selected :ignore-region)

#s(elfeed-entry
    ("www.cbc.com.com" . "https://www.cbc.com.com/defg/Polyglot-programming_%7E017e364530a5359046?source=rss")
    "Polyglot programming - Abc"
    "https://www.cbc.com.com/defg/Polyglot-programming_%7E017e364530a5359046?source=rss"
    1530592564.0
    #s(elfeed-ref "07038fa7a0c9db39b71600a20fc065b1ea9e9a2d")
        html
        nil
        (ror unread)
        "https://www.cbc.com.com/ab/feed/defg/rss?q"
        nil))

#s appears twice. What does it indicate?

Is (ror unread) an array?

Why does this have a dot? ("www.cbc.com.com" . "https...")

7
  1. That is a struct of elfeed-entry (defined by elfeed). The #s here means struct. The first one is for elfeed-entry, the second is for elfeed-ref.

    (cl-defstruct website name shortname url shorturl)
    
    (make-website :name "StackOverflow"
                  :url "https://stackoverflow.com/")
    ;; => #s(website "StackOverflow" nil "https://stackoverflow.com/" nil)
    (make-website :name "Youtube" :shortname "YT"
                  :url "youtube.com/" :shorturl "youtu.be")
    ;; => #s(website "Youtube" "YT" "youtube.com/" "youtu.be")
    
  2. #s in the form of #s((a . "a") (b . "b")) indicates a hash table. Also see ErgoEmacs's document with code samples.

  3. The dot indicates a pair. '("a" . "b") means (cons "a" "b"). See dotted pair notation.

Relevant source code from elfeed: elfeed-entry, elfeed-ref.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.