emacs: how to find out file location of a function

On Jan 16, 9:27 am, Bujji 〔bujjiec...@gmail.com〕 wrote:
│ Hi Xah,

│ All you said above looks correct for me.
│ This didn't show up in -Q enable of emacs.

│ But, how to trace where the .elc file exists and disabling the snippets?
│ Is there some debug command to see all loaded paths in emacs?

│ I started using emacs from 6 months and not an expert at this.

one easy way to track it is this:

when you think yasnippet mode is active, type
【Alt+x describe-function Enter yas/minor-mode Enter】

then in the help panel, it'll show you where the file is. Click on it to go to it. Then, delete that dir.

Restart emacs.

Repeat the above if necessary.


emacs autopair, paren, method comparison



hi Uday Reddy,

On Jan 16, 2:57 pm, Uday Reddy 〔usr.vm.ro...@gmail.com〕 wrote:
│ On 1/6/2012 4:31 PM, Xah Lee wrote:

│ │ i'd recommend not to use any minor mode for this. Here's my solution:

│ │ 〈Emacs: Insert Brackets by Pair〉
│ │http://xahlee.org/emacs/emacs_insert_brackets_by_pair.html

│ Xah Lee, here are 3 use cases for you:

│ 1. To type (x), you want to type exactly that: an `(' an `x' and a `)'.
│   Got it?

huh? I just type 【Menu+d x】. 2 keys (one combo plus a single key). and the keys are Thumb and home row on left hand.

As opposed to 【Shift+9 x Shift+0】, which is 3 keys (2 combos and a single key) that involves lots pinky.

(i actually use Dvorak layout, so the 【Menu+d x】 is actually 【Menu+e q】. But i'll stick to qwerty notation in this message for easy understanding for the masses)

│ 2. If you change your mind after typing `(', when the buffer has (), you
│ want to hit DEL or BSP, and both the parens should disappear.

No. I use ErgoEmacs keybinding. So, after i typed 【Menu+d】 to have inserted () , and if i decided i don't want it, either i undo 【Alt+z】, or hold Alt and press “df” (that is: 【Alt+d Alt+f】), which delets backward and forward. This is better than moving your hand to far upper right to press Backspace then Delete key.

│ 3. If you have xyz in your text, and you want to put it in brackets, you
│ want to select it and hit either
│    - `(' to produce (xyz) and move to the beginning of (xyz), or
│    - `)' to produce (xyz) and move to the closing of (xyz).

not quite sure i understand what you mean here.

if i have “xyz” in my text, and i want to make it “(xyz)”, i press 【Alt+e】 once to to delete the “xyz”, then 【Menu+d】 to insert the paren, then F3 or 【Alt+v】 to paste the “xyz” back.

│ Once you have "solutions" for these 3 use cases, we will be happy to
│ give you more.

so now you see my power?

my method doesn't require esoteric learning. It is standard across all OS and apps. While, yours, i suppose the emacs way, requires much more learning and being less efficient, to boot.

please let me know if there's any part that's not clear, or needs to be challenged.

PS if you don't know already, my first 6 years of using emacs (1998-2005) is in text terminal EXCLUSIVELY (repeate: text terminal EXCLUSIVELY, as i despise unix fucking X11, and semi-refused to install X11 when collegue asked as a sys admin on Solaris boxes), and using emacs default keybinding EXCLUSIVELY. I've documented my experience here a few times as well as a essay on my emacs tutorial site. Please Let me know if you require a link.



how to revive comp.lang.lisp

On Jan 13, 12:57 pm, Kaz Kylheku wrote: …

i'll tell u how to revive comp.lang.lisp. If all you follow it, i can guaranteed that comp.lang.lisp will revive immediately!

• all of you, switch to
as your newsgroup viewer, immediately.

• Stop your fucking bottom post. In fact, don't even quote the message. If you do want to quote, quote no more than one single sentence. And don't use the fucking “> ”.

• electric shock yourself whenever you felt a urge to bitch about how other is top/bottom posting, or whether he truncated lines, or whether he used unicode.

• if you have sympathy towards the cause of eternal-septmber.org, ask a neuro-surgeon to cut off the part of your brain that spawn such sympathy.

• use real names.

• add profile info, put a profile picture of yourself (and, not picture of some fucking planet, drawings, or batman.). e.g. fill info about your gender, age, code/job experience, etc. (ommit them only if you really want)

• add other link/contact info, such as your facebook, g+, twitter, blog, linkedin, stackoverflow, etc, if you have one.

yeah, let's make the world a better place. There's a cure for tech geeking. Follow me!


decline of newsgroup?

On Dec 30 2011, 11:14 pm, Kaz Kylheku wrote:
“ You know, folks, I don't quite understand this decline in Usenet.”


lol. it's dead precisely because there's this bunch of hacker tech geeker types, with views such as exactly you just expressed.

Further readings.

〈Death of Newsgroups〉

〈comp.lang.lisp is 95% Spam〉

〈Spy vs Spy; Tech Geekers vs Spammers〉

〈Computer Language Popularity Trend〉

〈What is a Tech Geeker?〉

〈Computing Culture: What's Hacker?〉

〈Paul Graham's Infatuation with the Concept of Hacker〉

〈Language, Purity, Cult, and Deception〉

〈HTML5 Doctype, Validation, X-UA-Compatible, and Why Do I Hate Hackers〉

〈the Death of Dennis Ritchie, John McCarthy, Steve Jobs, and Hackers〉



do you recommend emacs paredit mode?

On Jan 5, 12:40 am, "Pascal J. Bourguignon" wrote:
> Yuan Luo writes:
> > I am using common lisp mode in emacs 23, and it seems to me whenever
> > there is unmatched parens when I was saving a file, emacs reports
> > paren not matched with cursor moved to where the unmatch occurs but
> > then the cursor never moved back to where i was just editing. How do I
> > tell emacs 23 to move the cursor back? In emacs 22, it was fine.
> Don't save files with unmatched parentheses.
> Use paredit.http://www.emacswiki.org/emacs/ParEdit

I don't recommend paredit. I do recommend to always insert paren by pairs, however.

Here's what i recommend:

〈Emacs: Insert Brackets by Pair〉

〈How to Edit Lisp Code with Emacs〉