From: Shuguang Sun <shuguang79@qq.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to debug/gdb emacs/runemacs in windows?
Date: Fri, 24 May 2019 12:43:16 +0800 [thread overview]
Message-ID: <7149.16867889173$1558673075@news.gmane.org> (raw)
In-Reply-To: <31460.9890965343$1558661721@news.gmane.org> (Shuguang Sun's message of "Fri, 24 May 2019 09:26:35 +0800")
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
next prev parent reply other threads:[~2019-05-24 4:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 8:15 How to debug/gdb emacs/runemacs in windows? Shuguang Sun
2019-05-23 14:13 ` Eli Zaretskii
2019-05-24 1:26 ` Shuguang Sun
2019-05-24 4:43 ` Shuguang Sun [this message]
2019-05-27 9:37 ` Shuguang Sun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='7149.16867889173$1558673075@news.gmane.org' \
--to=shuguang79@qq.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.