This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-30
Channels
- # beginners (126)
- # boot (2)
- # cider (6)
- # cljs-dev (46)
- # cljsjs (8)
- # clojure (122)
- # clojure-greece (57)
- # clojure-italy (6)
- # clojure-poland (3)
- # clojure-russia (2)
- # clojure-serbia (5)
- # clojure-spec (26)
- # clojure-uk (99)
- # clojurescript (39)
- # cursive (15)
- # datascript (7)
- # datomic (21)
- # dirac (7)
- # duct (1)
- # emacs (19)
- # fulcro (58)
- # garden (4)
- # graphql (15)
- # hoplon (2)
- # immutant (1)
- # instaparse (3)
- # jobs (5)
- # juxt (15)
- # klipse (4)
- # leiningen (2)
- # lumo (52)
- # off-topic (8)
- # om (27)
- # onyx (22)
- # other-languages (3)
- # portkey (2)
- # protorepl (2)
- # re-frame (7)
- # reagent (7)
- # ring (11)
- # rum (7)
- # shadow-cljs (114)
- # spacemacs (20)
- # specter (16)
- # test-check (5)
- # timbre (1)
- # unrepl (43)
- # yada (17)
$ open -a /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/Emacs.app /Users/vemv/gpm/src/horizon/src/horizon/controls/widgets/grid/header.cljs +0:66
> The file /Users/vemv/gpm/src/horizon/+0:66 does not exist.
Try —args +0:66
so the line:col specification is passed through to emacs.
… I’m getting LSOpenURLsWithRole() failed for the application /usr/local/Cellar/emacs/25.3/bin/emacs-25.3 with error -10810
for whatever reason, the open
command isn’t working for me, but here’s a note from the emacs manual:
'+linenum:columnnum file'
Visit file using find-file, then go to line number linenum and put point at column number columnnum.
so your issue is, you need to pass the filename to emacs after the “+0:66”.in a terminal you should be able to navigate inside Emacs.app and see the actual binary, e.g. it’ll be something like /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/Emacs.app/Contents/MacOS/bin/emacs
. Once you know that, you should be able to invoke it directly: /usr/local/Cellar/emacs-mac/emacs-25.3-mac-6.8/Emacs.app/Contents/MacOS/bin/emacs +0:66 widgets/grid/header.cljs
@gonewest818 didn't work for me sadly!
betting this would be solved with emacs-server. not worth the hassle for me at the moment (another way would be if one could send arbitrary text messages to an existing Emacs process... don't know if that's possible though)
was there an error?
well, it’s the classic “works for me” situation. Both of these work on my macbook.
$ emacs --version
GNU Emacs 25.3.1
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
$ emacs +4:5 foo.txt
$ emacsclient +4:5 foo.txt
Waiting for Emacs...
$
@gonewest818 interestingly, plain emacs
(terminal) works. but non-GUI emacs is useless for me
for me that’s homebrew emacs (/usr/local/bin/emacs) … not the ancient apple one (/usr/bin/emacs)