Fork me on GitHub
#emacs
<
2018-01-03
>
qqq02:01:36

found it; pcase

vemv03:01:37

(buffer-string) returns this for me - a string with properties:

vemv03:01:00

how can I check if a specific property is contained?

vemv03:01:44

pseudocode: (if (contains? (buffer-string) "cider-repl-stdout-face"))

vemv04:01:09

Solved with: ...(prin1-to-string (buffer-string))...

dpsutton03:01:13

@qqq pcase is notoriously kinda weird. john wiegeley, the emacs maintainer, has written on it if you'd like to see some documentation http://newartisans.com/2016/01/pattern-matching-with-pcase/

qqq04:01:28

@dpsutton: it's okay, I'm not doing anything complicaetd; here is the extend of my pcase usage:

(defun my-get-level (s)
  (let ((ans (pcase (my-count-star s)
	       (0 999)
	       (x x))))
    (message "match: %s -> %s" s ans)
    ans))