Fork me on GitHub
#cursive
<
2019-10-26
>
cfleming00:10:25

@danie @alexmiller So “Raise all” would raise the current form and all its siblings, right?

cfleming00:10:24

Seems like that would mean that:

(defn x "Some doc" [x y]
  (println "Doing something")
 |(process x y))
would result in:
defn x "Some doc" [x y]
(println "Doing something")
(process x y)
Is that right?

danieroux06:10:20

It would result in:

(process x y)
  
And
(try
    (fn-1)
    | (fn-2)
    (fn-3))
  (catch Exception e
    (println "Oops"))
  
In
(fn-2)
  (fn-3)
  (catch Exception e
    (println "Oops"))
  

p-himik08:10:18

Isn't it "Slice Sexp Killing Backwards" under Edit -> Structural Editing?

p-himik08:10:45

If so, you can just assign any shortcut you like to it.

danieroux13:10:20

@p-himik it is indeed “Splice Sexp Killing Backwards”! Thank you. /cc @alexmiller @cfleming

cfleming00:10:52

In your example, why wouldn’t the try symbol also get promoted, since that’s a sibling too?

cfleming00:10:10

(not trying to be combatative, just trying to understand how it should work)

danieroux06:10:39

It’s the subsequent forms, not the sibling forms. And thank you for trying to understand 🙂