logs archiveIRC Archive / Freenode / #emacs / 2015 / July / 13 / 1
andrew39
i got around to cleaning up my config file and fixing some issues i had with it for a while
now, short of a compiler, emacs is a full ide for c and c++
war_pigs
I'm trying to install spacemacs on my home computer (OSX Yosemite with GNU Emacs 24.5.1) but having trouble - after cloning the repo into a fresh .emacs.d folder and opening emacs it opens the normal emacs as if nothing happened. Any ideas of what can be the issue?
gsingh93
today was the fourth time in the last month emacs complete erased the content of a file on it's own and left no undo information
furthermore, no backup was created of this file in the backup directory (all other files have backups)
i can at least revert back to the last commit, but i lost some stuff in between commits
small-wo1f
if I want to advise kmacro-start-macro, it seems like I have to do it within my .emacs.d/init.el, as opposed to a separate file that I require, anyone know why that is?
gsingh93
has any experienced anything like this? how would i go about debugging it?
ryouma
gsingh93: first, why did it corrupt the file. do you use auto save in place? second, why is there no backup. vc takes the cake for worst default ever. do you have a .git etc?
gsingh93
ryouma: i have .git, i reverted to the last commit
ryouma
that is why there are no backup files
,vc
fsbot
hmm, VC is [0/7] at http://www.emacswiki.org/emacs/VC
[1] (info "(emacs)Version Control"),
[2] (setq vc-make-backup-files t) ;fix stupid default,
[3] (setq vc-handled-backends nil) to turn it off. some people recommend this.,
[4] have you tried magit.el, ..[Type ,more]
         

ryouma
gsingh93: see 3
no undo information sounds really bad. explain what you did (c-h l might help)
it really erased a file? per se? not a buffer?
,buf
fsbot
[TMDM] [g] http://www.emacswiki.org/emacs/ProtBuf
http://www.emacswiki.org/emacs/KillKey
gsingh93
wtf, who thought this vc thing was a good idea?
ryouma
gsingh93: its author :/
gsingh93
thanks, i'm changing that setting
ryouma
,file
fsbot
[TMDM] [g] http://www.emacswiki.org/RecentFiles
http://www.emacswiki.org/info-ref%3Ffind%3DFile%2520Name%2520Cache
felipedvorak
I'm looking for some sane/security inclined Circe configuration. Anybody?
ryouma
fsbot: file is a file is on disk, a buffer is in emacs memory, a window is a pane in emacs, and a frame is a window in your window system
fsbot
Created new entry for "file"
gsingh93
ah, knowing about C-h l would have been helpful before running a bunch more commands. but if i remmeber correctly, i switched buffers, and when i switched back the buffer was gone and there was no undo information
ryouma
if the buffer was gone then it was killed
gsingh93
oh sorry
ryouma
undo is destroyed then
gsingh93
i mean the contents of the buffer was gone
small-wo1f
can you advise an autoloaded function like kmacro-start-macro anywhere or just within your .emacs?
ryouma
gsingh93: something erased the buffer, reverted from an empty file, killed the contents, etc.
avshalom
ryouma: does vc-handled-backends nil completely disable vc?
when it says "some people recommend this" is it being witty?
ryouma
avshalom: here is what i did, because i was REALLY incensed: http://paste.debian.net/281692/
avshalom
ryouma: oh, nevermind, i think i get it. Yes, this "turn it off"
         

wasamasa
felipedvorak: not sure what that would specifically entail
felipedvorak
wasamasa: auto-ssl mostly
ryouma
avshalom: yeah that might be enough
small-wo1f
is there a way to force emacs to backup your files in a centralized location instead of in the folder you're currently working?
ryouma
avshalom: but i don't want to take any chances :)
felipedvorak
I just want a start-kick hehe
gsingh93
small-wo1f: backup-directory-alist
avshalom
ryouma: ok, works for me. i think i have locked up on tramp before, so this is a net gain
gsingh93
ryouma: is there any way for me to track down what erased the buffer? maybe some kind of log of all elisp commands run and where they came from? this happens infrequently and is hard to reproduce
wasamasa
,lossage
fsbot
hmm, Lossage is (info "(emacs)Lossage")
wasamasa
hurr
F1 l
offby1
gsingh93: you could try "advising" erase-buffer, and have it emit a message when it's called, along with the stack trace.
gsingh93: but it might be some other function, like "revert", that's doing it.
gsingh93: do you have auto-revert-mode turned on?
gsingh93
offby1: nope
offby1
hmph
small-wo1f
felipedvorak: by security oriented circe config do you mean like sasl and ecdsa-256p-whatever-challenge?
wasamasa
magit uses it excessively
offby1
gsingh93: ,,df debug-on-entry
fsbot
debug-on-entry is an interactive autoloaded compiled Lisp function in
`debug.el'.
(debug-on-entry FUNCTION)
Request FUNCTION to invoke debugger each time it is called.
When called interactively, prompt for FUNCTION in the minibuffer. ..[Type ,more]
felipedvorak
small-wo1f: thing is, I have my weechat pretty extensively configured but I want to live inside my emacs... so I'm trying to create the courage to switch, but I want some sane configurations to start with
offby1
gsingh93: if you knew the function that was being called -- like erase-buffer -- then debug-on-entry might be a convenient way to catch the caller in the act
gsingh93
ok, i'll set it up for that function and for revert, hoping that one of those is the culprit
small-wo1f
felipedvorak: I've been using irssi for a while ever since I discovered my phone's IP address was in the range that requires SASL for freenode
gsingh93
oh, another piece of information
when i reverted from git, i had to set the language mode back to normal
small-wo1f
before that I was using erc. I kind of miss it
gsingh93
i was using rust-mode
and i had to reenable it
i should have checked what other modes were turned on/off, darn it
felipedvorak
small-wo1f: cant do sasl with erc?
offby1
gsingh93: that's _probably_ irrelevant; it sounds like you simply don't have ,,dv auto-mode-alist properly set up to recognize rust files
fsbot
Alist of filename patterns vs corresponding major mode functions.
Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
(NON-NIL stands for anything that is not nil; the value does not matter.)
Visiting a file whose name matches REGEXP specifies FUNCTION as the ..[Type ,more]
offby1
... which isn't surprising, since rust is a relatively new language and Emacs tends to lag
gsingh93
offby1: no, every time i open a rust file it works
offby1
hm, then maybe that is indeed a clue
gsingh93
i'll check the enabled modes if it happens again
offby1
gsingh93: if it makes you feel any better: https://gist.github.com/offby1/042ab182a7383c1e69a2
small-wo1f
felipedvorak: there's an erc-sasl thing on github but I was too lazy to try to figure out how it worked
anderson
I never got erc-sasl to work. So I run a znc locally.
gsingh93
ok, offby1, ryouma, it just happened again (thank god i have backups now). I hit C-x b to switch buffers, Helm mode opened like it should, but the buffer where my file should be is blank and the mode is set to Helm. at this point i check my file on disk from the terminal and it hasn't been erased. after choosing another buffer and going to it, the file on disk is overwritten by the empty buffer (that saving is
a setting i have enabled)
so it seems like Helm mode is the problem
wasamasa
oh snap
time for an issue :P
gsingh93
yea, the problem is it's really hard to reproduce
it happens randomly
wasamasa
I'm sure they can still help you figuring out what exactly happens, as long as you post a detailed description of the problem that is
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next »