There’s a simple paste in IntelliJ which might help
is anyone using emacs for mac osx? http://emacsformacosx.com/
i am having problems with smartparens on it
C-<left>
and C-<right>
doesn’t work for me
i have to use C-(
and C-M-}
instead 😞
jsyeo: works for me - do you have the keybindings available from the OS? (I think they’re bound by default to workspace right/left)
@jcsims: good catch! i disabled it and it’s working for me now!
thanks!
@rauh: The escaping paste in Cursive is modelled after the IntelliJ one - what is it stripping out you’d like to keep?
@jsyeo: While you are on it -- if you press Command-Control-A in Emacs, what do you see in minibuffer?
@jsyeo: I'm trying to catch a weird bug in Emacs and can't narrow down the conditions for it being exhibited.
@dottedmag: i get <C-s-268632065> is undefined
@jsyeo: Thanks
👍
@jsyeo: By any chance do you use Dvorak, Colemak or anything else non-QWERTY?
nope
i am using classic qwerty
Okay, so it is not layout-dependent then. Great.
The code in question muffles something about non-standard layouts.
im curious, what bug are u trying to catch?
This key combination should result in C-s-a, not C-s-268632065
Which makes impossible to add a keybinding to it.
Here's a patch: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21330
https://lists.gnu.org/archive/html/bug-gnu-emacs/2015-03/msg00010.html
i see this
after googling
Oh, yes, the same error, but without patch :)
@cfleming: I was copy pasting within a long mutliline regex #"..."
and it kept joining the lines and removed all my escape characters. Is there a way to disable it completely? I would probably prefer if it *just* escaped "
and left he new lines etc in place
So to answer you question: The regex had various \s
or \d
and when I copy & pasted them the \
just disappeared and ended up being just s
or d
@rauh: Oh yes, I noticed that too - in general I think the escaping should be totally disabled in regexes since they don’t obey the same escaping rules as in Java strings.
@rauh: https://github.com/cursiveclojure/cursive/issues/1034
Awesome, thanks!
Personally, I don't like to much magic. Though, escaping "
is nice. But more transformations are too much IMO
I basically just copied what IntelliJ does - it’s actually possible there’s already a config flag to turn that off.
Ok I'll try to find it.
I just browsed quickly and couldn’t find anything.
Ok, so you can’t disable it globally, looks like.
Well you can bind paste simple to CTRL+V
That’s very true.
Works for me, feel free to make it a non-issue
Although I tend to use Cmd-Shift-V a lot, I guess it won’t work there.
I’ll fix the regex case anyway, that is definitely broken. I’d noticed that myself but was obviously too lazy to file an issue at the time.