[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to debug/gdb emacs/runemacs in windows?
From: |
Shuguang Sun |
Subject: |
Re: How to debug/gdb emacs/runemacs in windows? |
Date: |
Fri, 24 May 2019 12:43:16 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) |
Shuguang Sun <shuguang79@qq.com> writes:
> The --force-dump option is speficed in my dot emacs. It helps to skip
> requiring some libraries or evaluating some piece of code in case of
> dumpted emacs which has been evaluted during dumping, but not in normal
> emacs.
>
> (defun --my-parse-command-line (args)
> "Handle specific command line arguments."
> (let ((i 0) new-args)
> (while (< i (length args))
> (let ((arg (nth i args))
> (next-arg-digit
> (when (< (1+ i) (length args))
> (string-to-number (nth (1+ i) args)))))
> (when (or (null next-arg-digit) (= 0 next-arg-digit))
> (setq next-arg-digit nil))
> (pcase arg
> ("--force-dump"
> (setq --is-not-dumped nil))
> (_ (push arg new-args))))
> (setq i (1+ i)))
> (nreverse new-args)))
>
> (setq command-line-args (--my-parse-command-line command-line-args))
>
>
It is learned from Spacemacs.
--
Best Regards
Shuguang Sun