logs archiveIRC Archive / Freenode / #emacs / 2009 / November / 24 / 1
oxi
OberWrk: thanks
OberWrk
oxi np
cn28h
okay, so I can jump to the matching previous brace using C-M-b (or C-M-f for forward).. but is there a way to jump to the previous { ( etc which you're inside? (not sure if that made sense)
jlf
C-r ( ?
ggole
,df backward-up-list
fsbot
backward-up-list is an interactive compiled Lisp function in
`lisp.el'.
It is bound to <C-M-up>, ESC <C-up>, C-M-u.
(backward-up-list &optional ARG)
Move backward out of one level of parentheses.
With ARG, do this that many times. ..[Type ,more]
cn28h
aha, yeah that was it :)
ratelle
exit
Eraldo
if I start emacs with "emacs" I get an error with my .emacs file ...however if I start it with "emacs --debug-init" I don't get any error? oO what is going on here?
         

jlf
"an error"?
Eraldo
how can I find it if it is gone when starting with --debug-init
I thought --debug-init was there to find the error not make it disappear
oxi
,,scripting
fsbot
LispScriptingLanguages is [0] Lush, Emacs, Scsh
[1] Clisp and Sbcl (hack) may also have something similar
jlf
Eraldo: look in the *Messages* buffer
Eraldo
jlf: I am there
oxi
,,batch-mode.el
fsbot
batch-mode.el is, like, at http://www.emacswiki.org/cgi-bin/wiki.pl?batch-mode.el
oxi
,,BatchFiles
fsbot
BatchFiles is, like, at http://www.emacswiki.org/cgi-bin/wiki.pl?BatchFiles
jlf
Eraldo: the error message should be in that buffer
oxi
,,CategoryBatchMode
fsbot
CategoryBatchMode is [0] at http://www.emacswiki.org/cgi-bin/wiki/CategoryBatchMode
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl?CategoryBatchMode
jlf
oxi: fsbot is happy to answer a /query
Eraldo
jlf: http://paste.lisp.org/display/90981 ...any clue which line it does not like
oxi
jif: I'm not so sure what you mean
jig: I pm fsbot with /query (searchstring)?
jlf
oxi: you can have a private conversation with fsbot by doing /query fsbot
oxi
jif: ah, thanks!
funkenblatt
Eraldo: presumably it doesn't like the "end of file during parsing"
which probably means you left out a closing paren somewhere
jlf
Eraldo: look for an unterminated string or sexp
         

skorpan
is there any function for switching to the buffer which is the last one in the "buffer ring"?
i often find that i need to bury a buffer and then get it back
jlf
skorpan: in ido, C-x b C-r RET
Eraldo
jlf: can't I make that debug session spit out the line number?
the file is huge
skorpan
yeah, but is there any function for it?
jlf
Eraldo: ,,binarysearch
fsbot
binarysearch is Try using a binary search on .emacs to locate the cause of a problem. That is, split the file in two, either by commenting half of it out or by using M-x eval-region ononly half of it (starting from emacs -Q). Then split the problematic half in two and repeat etc.
The_Journey
how do I set my c-style to be gnu?
Eraldo
jlf: found it! thanks to you and binarysearch :)
mjrosenb
hey, is there any way to force cc mode to operate in C++ mode rather than C mode?
The_Journey: C-.
The_Journey
mjrosenb: It's undefined
funkenblatt
mjrosenb: M-x c++-mode?
The_Journey: i think he meant C-c .
mjrosenb
funkenblatt: indeed.
k-man
any idea where i might find gnutls-cli for win32?
magcius
Symbol's value as variable is void: minibuffer-local-must-match-filename-map
from git
fuuu
bpalmer
I have minibuffer-must-match-map , not minibuffer-must-match-filename-map
magcius
It's failing when loading anything and anything-config
lisppaste
magcius pasted "anything-config broken" at http://paste.lisp.org/display/90984
magcius
And that's not a very effective captcha.
qed
I keep getting some weird errors that I'm not sure how to fix:
magcius
bpalmer, oh. Hah. It was changed to filename-must-match-map
qed
Upon startup: ad-handle-definition: `hack-local-variables' got redefined
If I open org-mode: Variable binding depth exceeds max-specpdl-size
Can anyone offer any help or suggestions?
oxi
how do I load a file into a buffer using batch mode?
bpalmer
oxi: what are you trying to do?
oxi
bpalmer: script printing of a tex file to ps using emacs with it's color highlighting
jlf
qed: ,,-q
fsbot
hmm, -q is if you start emacs with "emacs -q" and the problem goes away, it's YOUR FAULT; check your .emacs. If "emacs -q" has problems and "emacs -Q" does not, it's caused by your distro or local admin.
qed
jlf: yeah im just trying to figure out where the hell the problem is coming from
jlf
how do -q and -Q behave?
qed
totally normal
it looks like i fixed it
the cedet in my ~/src/ that i was loading is causing the problem
rahul
so your init file has an infinite recursion
oxi
bpalmer: I'm thinking of somethign like that: /Users/oxi/Applications/Aquamacs20p3/Aquamacs.app/Contents/MacOS/Aquamacs\ Emacs -l ~/my_print_settings.el -batch -eval '(load the tex file which I want to print)'
bpalmer: could my approach work?
qed
technomancy: im getting an error with rudel on ubuntu: a problem with eieio
bpalmer
oxi: possibly, but you may not get colorizing in that instance.
oxi: the normal commands like find-file will work like normal in batch mode
oxi
bpalmer: I want colorizing, that's the whole point of the thing :-(
bpalmer
oxi: well, it's worth a try.
it depends how fancily the faces are defined, I suspect, actually.
oxi
how would I load a file from command line?
bpalmer
like I said, using find-file
you "load" elisp that you want evaluated; you "find" files that you want to edit.
oxi
ah, find sounded like find for me and not load :-)
ok
bpalmer
that's why you C-x C-f to get a file into a buffer
qed
http://pastie.org/private/fl2vackatauyogyfyqmmw <--- How can I make it so on OSX it uses /usr/local/bin/shell-fm, but on linux it uses /usr/bin/shell-fm?
jlf
qed: (cond ((eq system-type 'gnu/linux) ..linux stuff..) ((eq system-type 'darwin) ..osx stuff..))
bpalmer
make sure you handle 'linux also
qed
jlf: so does the entire defcustom get put in two different places
bpalmer
and feel free to roll eyes at 'gnu/linux
I do every time.
jlf
qed: i didn't look at your paste
qed
i have this (defcustom shell-fm-program "/usr/bin/blah"..........)
should i make /usr/bin/blah a variable that is set depending on architecture
or should i nest two versions of defcustom inside the cond
magcius
also, I still don't understand this.
jlf
qed: the former seems cleaner
bpalmer
qed: I would just pick one as a default, and let people customize it to the other if they need to.
jlf
bpalmer: careful, you'll wake ams
qed
jlf: im not very hot with elisp just yet: (defvar my-program-location "/usr/local/bin/shell-fm")
and then (defcustom shellfm-program my-program-location....)
is that legit?
magcius
(normal-top-level-add-subdirs-to-load-path) isn't adding all the folders in the path
bpalmer
qed: it is legitimate, but I question the design.
qed
bpalmer: care to elaborate?
bpalmer: errr oh i see what you mean, but this is not my software
this is me editing shell-fm.el to fit my home and work configuration (linux/mac)
bpalmer
qed: oh, don't edit it.
Instead, M-x customize-variable RET shellfm-program RET on each workstation.
qed
well i can just throw that into my init or something right
bpalmer
yes, exactly.
editing a .el file is usually unnecessary
qed
the problem is there is no variable
unless i create one
bpalmer
thanks to the glories of dynamic scope, you can almost always go mess with its innards after the fact.
qed: oh. I didn't know that.
qed
it's cool
i think im just gonna edit the source
bpalmer
ok. sounds like you know what you're doing.
qed
not really, but we'll see :)
so if i defvar shell-fm-location "blah"
do i pass that to defcustom like:
defcustom shell-fm-program '(shell-fm-location)
bpalmer
qed: I don't quite follow what you're doing; defcustom is almost a superset of defvar functionality
qed: where is this shell-fm source?
qed
elpa
bpalmer
it available on the web somewhere?
qed
bpalmer
(I don't use elpa, since it's emacs only ;)
oxi
bplamer: /Users/oxi/Applications/Aquamacs20p3/Aquamacs.app/Contents/MacOS/Aquamacs -batch ~/Documents/CV/letter.tex -eval '(ps-print-buffer-with-faces "foobar.ps")'
bpalmer: ps2pdf -sPAPERSIZE=a4 foobar.ps
printing worked, but without a face
bpalmer
qed: ok, it does define the variable using defcustom
qed
indeed
bpalmer
so my earlier suggestion of M-x customize-variable RET shellfm-program RET should work
qed
ahhhhhh
i assumed defcustom was a macro or something
again im not so good with elisp just yet
thanks bpalmer
bpalmer
defcustom is a macro, but that may not mean quite what you're thinking it means :)
qed
well yeah
i guess i mean like "defmacro"
like i know in clojure
(defmacro unless [expr body] (list 'if expr nil body))
bpalmer
qed: yes, that's what it is, but when you trace through it it turns into a near superset of defvar
qed
ah-ha
i see
bpalmer
basically, it's defvar plus some metadata like type annotation, grouping with related variables, and so forth; designed to work with M-x customize RET and related functions
qed
okay that makes sense
i didnt know metadata was in elisp
im learning backwards here from clojure
sellout
qed: Not metadata in the same way.
ggole
Metadata in elisp is usually some crap stuffed into property lists
jordanb
Let's quit developing for the iPhone.
sellout
jordanb: Are you the new zippy bot?
brx
sellout: the bot is based on jordanb
jlf
(Action) thought jordanb was based on the bot
sword
There's a difference nowadays?
qed
ggole: ah
nan8
,(+ 1 2)
fsbot
3 ..(integer)
oxi
how do I change mode with eval?
nan8
,(floor (/ 7 2)
fsbot
BEEEP: End of file during parsing
nan8
,(floor (/ 7 2))
fsbot
3 ..(integer)
nan8
,(floor (/ 7.0 2))
fsbot
3 ..(integer)
sword
oxi: M-: (org-mode)
oxi
sword: thanks
sword
oxi: modes are just another function
oxi
sword: yeah, thanks, that's what I just realized when I looked at your example
sword
oxi: You might want to try the Elisp tutorial
oxi
sword: thanks
I'm trying to print using a face using command line, but I fail: ~/Applications/Aquamacs20p3/Aquamacs.app/Contents/MacOS/Aquamacs -l ~/Documents/CV/test.el -batch ~/Documents/CV/letter.tex -eval '(ps-print-buffer-with-faces "foobar.ps")'
while, test.el contains: (set-face-attribute 'latex-mode-default nil :family "monaco" :height 140) (latex-mode)
it prints to foobar, but without any face
I also put in test.el: (load "/Users/oxi/Library/Preferences/Aquamacs Emacs/customizations.el") (load "/Users/oxi/Library/Preferences/Aquamacs Emacs/Preferences.el")
but printing the face still doesn't work
rgr
is there a recommended / emacs 23 compatible way of saving buffer layouts between emacs sessions? I can find a few semi hacks that people knocked together but little that look suspported or "long term".
jlf
oxi: you may wish to try with a different version of emacs
aquamacs often diverges from standard behavior in interesting and unexpected ways
oxi
jif: well, printing a face works from within Aquamacs
jlf
s/jif/jlf/
suit yourself
rgr: ,,sessions
fsbot
[->] From memory, SessionManagement is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?SessionManagement
[1] http://emacs-session.sourceforge.net,
[2] desktop.el,
[3] http://emacs-session.sourceforge.net/related.html
« prev 1 2 3 4 5 6 7 8 9 next »