Fork me on GitHub
#emacs
<
2017-05-17
>
martinklepsch02:05:01

I feel like something changed in recent emacs. I now get into the “Lisp Expression:” thing all the time and have no idea what’s triggering it. Anyone know what the command is called or how I can see a history of called commands?

martinklepsch02:05:35

it’s triggered every 5 keystrokes or so. so annoying 😣

jeff.terrell03:05:59

@martinklepsch - That rang a bell, and I found the relevant conversation in the archives: https://clojurians-log.clojureverse.org/cider/2016-03-22.html

dpsutton03:05:20

in recent emacs? but you're hitting a (read nil) somewhere

dpsutton03:05:30

there was a bug in CIDER recently fixed about that i believe

dpsutton03:05:35

i'm not seeing it now but when two lisps interact, people use read to read the stuff from the other. in emacs, read with nil passed to it means prompt the user. and something was coming back nil and causing this

dpsutton03:05:56

ah, and if you use inf-clojure they just recently patched something there as well

martinklepsch03:05:17

ah, infact using inf-clojure. That’s all very interesting thanks @dpsutton

richiardiandrea03:05:09

Yep, sorry @martinklepsch, I think @bozhidar will release soon with the patch

bozhidar05:05:37

Someone should remind me about this tomorrow. 🙂

jeff.terrell12:05:49

FWIW you can /remind in Slack :-)

richiardiandrea15:05:54

Just tried the remind feature, neat!

radon16:05:42

@richiardiandrea Regarding your question about defcustom, try

(defcustom my-replace-or-append-option '(replace . "foo")
  "The documentation for my option.
The value is a cons cell where the car is the symbol `replace' or
the symbol `append', and the cdr is a string."
  :group 'my-options
  :type '(cons (choice (const :tag "Replace" replace)
                       (const :tag "Append" append))
               string))
and you should get
Hide My Replace Or Append Option:
Choice: [Value Menu] Replace
String: foo
   [ State ]: STANDARD.
   The documentation for my option. Hide
   The value is a cons cell where the car is the symbol 'replace' or
   the symbol 'append', and the cdr is a string.

radon16:05:16

@richiardiandrea Looking at your code, I think you want to remove the . after (cons string, and remove the quotes in front of replace and prepend. Otherwise it’s a bit wonky in the Customize interface.

richiardiandrea16:05:31

will do thank you

richiardiandrea16:05:15

what do you do when you want to backfill the string functions in 24.4 to old emacs? just if on the version?