* instance process name
@ 2005-09-02 17:46 Rancier, Jeff
2005-09-02 18:15 ` Kevin Rodgers
2005-09-03 10:39 ` Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: Rancier, Jeff @ 2005-09-02 17:46 UTC (permalink / raw)
Hello All,
Is there an easy method to retrieve the process name of 'this' instance of
Emacs, via a lisp expression?
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: instance process name
2005-09-02 17:46 instance process name Rancier, Jeff
@ 2005-09-02 18:15 ` Kevin Rodgers
2005-09-03 10:39 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2005-09-02 18:15 UTC (permalink / raw)
Rancier, Jeff wrote:
> Is there an easy method to retrieve the process name of 'this'
instance of
> Emacs, via a lisp expression?
,----[ C-h f emacs-pid RET ]
| emacs-pid is a built-in function.
| (emacs-pid)
|
| Return the process ID of Emacs, as an integer.
`----
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: instance process name
@ 2005-09-02 18:55 Rancier, Jeff
0 siblings, 0 replies; 8+ messages in thread
From: Rancier, Jeff @ 2005-09-02 18:55 UTC (permalink / raw)
Thanks Kevin. Actually, I'm running GNU Emacs 21.3.2 (sparc-sun-solaris2.8,
X toolkit, Xaw3d scroll bars) from Windows, but when I bring up Sun's Forte
Debugger (workshop), Sun has integrated the debugger into Xemacs, and I
simply want the ability to load/~load various features, as they both use the
same init file. I'll probably just use the emacs-build-system or
emacs-version.
Jeff
| -----Original Message-----
| From: Kevin Rodgers [mailto:ihs_4664@yahoo.com]
| Sent: Friday, September 02, 2005 2:15 PM
| To: help-gnu-emacs@gnu.org
| Subject: Re: instance process name
|
|
| Rancier, Jeff wrote:
| > Is there an easy method to retrieve the process name of 'this'
| instance of
| > Emacs, via a lisp expression?
|
| ,----[ C-h f emacs-pid RET ]
| | emacs-pid is a built-in function.
| | (emacs-pid)
| |
| | Return the process ID of Emacs, as an integer.
| `----
|
| --
| Kevin Rodgers
|
|
|
| _______________________________________________
| Help-gnu-emacs mailing list
| Help-gnu-emacs@gnu.org
| http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
|
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: instance process name
2005-09-02 17:46 instance process name Rancier, Jeff
2005-09-02 18:15 ` Kevin Rodgers
@ 2005-09-03 10:39 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2005-09-03 10:39 UTC (permalink / raw)
> From: "Rancier, Jeff" <Jeff.Rancier@Sensis.com>
> Date: Fri, 2 Sep 2005 13:46:53 -0400
>
> Is there an easy method to retrieve the process name of 'this' instance of
> Emacs, via a lisp expression?
It is not clear to me what you mean by ``the process name''. Can you
clarify?
One possibility is (car command-line-args), but I'm not sure if that's
what you want.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: instance process name
[not found] <mailman.5806.1125689370.20277.help-gnu-emacs@gnu.org>
@ 2005-09-05 18:17 ` Stefan Monnier
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2005-09-05 18:17 UTC (permalink / raw)
> Thanks Kevin. Actually, I'm running GNU Emacs 21.3.2 (sparc-sun-solaris2.8,
> X toolkit, Xaw3d scroll bars) from Windows, but when I bring up Sun's Forte
> Debugger (workshop), Sun has integrated the debugger into Xemacs, and I
> simply want the ability to load/~load various features, as they both use the
> same init file. I'll probably just use the emacs-build-system or
> emacs-version.
You'll probably be yet better off checking (fboundp '<foo>) and (featurep
'<bar>) and (boundp '<baz>) and things like that.
But you'll have to tell us more if you want a more complete answer.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: instance process name
@ 2005-09-06 14:44 Rancier, Jeff
2005-09-06 15:12 ` Henrik Enberg
2005-09-06 20:49 ` Kevin Rodgers
0 siblings, 2 replies; 8+ messages in thread
From: Rancier, Jeff @ 2005-09-06 14:44 UTC (permalink / raw)
The actual name from the process table, specifically, I want to
differentiate between 'xemacs' vs. 'emacs'. Thanks.
| -----Original Message-----
| From: Eli Zaretskii [mailto:eliz@gnu.org]
| Sent: Saturday, September 03, 2005 6:40 AM
| To: help-gnu-emacs@gnu.org
| Subject: Re: instance process name
|
|
| > From: "Rancier, Jeff" <Jeff.Rancier@Sensis.com>
| > Date: Fri, 2 Sep 2005 13:46:53 -0400
| >
| > Is there an easy method to retrieve the process name of
| 'this' instance of
| > Emacs, via a lisp expression?
|
| It is not clear to me what you mean by ``the process name''. Can you
| clarify?
|
| One possibility is (car command-line-args), but I'm not sure if that's
| what you want.
|
|
| _______________________________________________
| Help-gnu-emacs mailing list
| Help-gnu-emacs@gnu.org
| http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
|
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: instance process name
2005-09-06 14:44 Rancier, Jeff
@ 2005-09-06 15:12 ` Henrik Enberg
2005-09-06 20:49 ` Kevin Rodgers
1 sibling, 0 replies; 8+ messages in thread
From: Henrik Enberg @ 2005-09-06 15:12 UTC (permalink / raw)
Cc: help-gnu-emacs
> From: "Rancier, Jeff" <Jeff.Rancier@Sensis.com>
> Date: Tue, 6 Sep 2005 10:44:39 -0400
>
> The actual name from the process table, specifically, I want to
> differentiate between 'xemacs' vs. 'emacs'. Thanks.
(if (featurep 'xemacs)
(message "it's XEmacs")
(message "it's Emacs"))
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: instance process name
2005-09-06 14:44 Rancier, Jeff
2005-09-06 15:12 ` Henrik Enberg
@ 2005-09-06 20:49 ` Kevin Rodgers
1 sibling, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2005-09-06 20:49 UTC (permalink / raw)
Rancier, Jeff wrote:
> The actual name from the process table, specifically, I want to
> differentiate between 'xemacs' vs. 'emacs'. Thanks.
,----[ C-h v invocation-name RET ]
| invocation-name's value is "emacs"
|
| Documentation:
| The program name that was used to run Emacs.
| Any directory names are omitted.
`----
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-06 20:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02 17:46 instance process name Rancier, Jeff
2005-09-02 18:15 ` Kevin Rodgers
2005-09-03 10:39 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2005-09-02 18:55 Rancier, Jeff
[not found] <mailman.5806.1125689370.20277.help-gnu-emacs@gnu.org>
2005-09-05 18:17 ` Stefan Monnier
2005-09-06 14:44 Rancier, Jeff
2005-09-06 15:12 ` Henrik Enberg
2005-09-06 20:49 ` Kevin Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).