Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.editoren > #253 > unrolled thread
| Started by | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| First post | 2020-02-22 11:20 +0100 |
| Last post | 2020-02-23 21:22 +0100 |
| Articles | 9 — 4 participants |
Back to article view | Back to de.comp.editoren
emacs - Standardordner Clemens Schüller <cs.usenet@mailbox.org> - 2020-02-22 11:20 +0100
Re: emacs - Standardordner Stefan Wiens <s.wi@gmx.net> - 2020-02-22 12:23 +0100
Re: emacs - Standardordner Clemens Schüller <cs.usenet@mailbox.org> - 2020-02-22 12:32 +0100
Re: emacs - Standardordner Helmut Waitzmann <nn.throttle@xoxy.net> - 2020-02-22 18:34 +0100
Re: emacs - Standardordner Clemens Schüller <cs.usenet@mailbox.org> - 2020-02-22 18:49 +0100
Re: emacs - Standardordner Helmut Waitzmann <nn.throttle@xoxy.net> - 2020-02-22 23:20 +0100
Re: emacs - Standardordner Stefan Reuther <stefan.news@arcor.de> - 2020-02-23 09:41 +0100
Re: emacs - Standardordner Stefan Wiens <s.wi@gmx.net> - 2020-02-23 12:01 +0100
Magit als Standard VCS (was: emacs - Standardordner) Clemens Schüller <cs.usenet@mailbox.org> - 2020-02-23 21:22 +0100
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-02-22 11:20 +0100 |
| Subject | emacs - Standardordner |
| Message-ID | <m2imjy53ei.warhorse@cmschueller.my-fqdn.de> |
Hallo zusammen! Ich hab hier das - leicht nervige - Problem, dass emacs bei C-x C-f oder C-x d _immer_ / als Standardordner vorgibt, ich will aber ~/ haben. In der .emacs steht --8<---------------cut here---------------start------------->8--- (setq default-directory "/Users/mente/") --8<---------------cut here---------------end--------------->8--- Aber, ausgewertet wird es wohl nicht, denn: --8<---------------cut here---------------start------------->8--- default-directory is a variable defined in ‘C source code’. Its value is "/" Local in buffer *unsent posting on de.comp.editoren*; global value is nil Automatically becomes permanently buffer-local when set. This variable is safe as a file local variable if its value satisfies the predicate ‘stringp’. Probably introduced at or before Emacs version 1.11. Documentation: Name of default directory of current buffer. It should be an absolute directory name; on GNU and Unix systems, these names start with ‘/’ or ‘~’ and end with ‘/’. To interactively change the default directory, use command ‘cd’. --8<---------------cut here---------------end--------------->8--- Was kann man hier machen? -- Beste Grüße, Clemens Schüller
[toc] | [next] | [standalone]
| From | Stefan Wiens <s.wi@gmx.net> |
|---|---|
| Date | 2020-02-22 12:23 +0100 |
| Message-ID | <875zfyrht3.fsf@eswe.dd-dns.de> |
| In reply to | #253 |
Clemens Schüller <cs.usenet@mailbox.org> writes: > Ich hab hier das - leicht nervige - Problem, dass emacs bei C-x C-f oder > C-x d _immer_ / als Standardordner vorgibt, ich will aber ~/ haben. > > In der .emacs steht > > > (setq default-directory "/Users/mente/") > > > Aber, ausgewertet wird es wohl nicht, denn: > > > > default-directory is a variable defined in ‘C source code’. > Its value is "/" > Local in buffer *unsent posting on de.comp.editoren*; global value is nil > > Automatically becomes permanently buffer-local when set. > This variable is safe as a file local variable if its value > satisfies the predicate ‘stringp’. > Probably introduced at or before Emacs version 1.11. > > Documentation: > Name of default directory of current buffer. > It should be an absolute directory name; on GNU and Unix systems, > these names start with ‘/’ or ‘~’ and end with ‘/’. > To interactively change the default directory, use command ‘cd’. > > > > Was kann man hier machen? vielleicht (setq-default default-directory "~/") (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local Variables) -- Stefan
[toc] | [prev] | [next] | [standalone]
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-02-22 12:32 +0100 |
| Message-ID | <m2k14evowb.warhorse@cmschueller.my-fqdn.de> |
| In reply to | #254 |
Servus! Stefan Wiens schrieb am 22. Feb. 2020 um 12:23: > Clemens Schüller <cs.usenet@mailbox.org> writes: >> Ich hab hier das - leicht nervige - Problem, dass emacs bei C-x C-f oder >> C-x d _immer_ / als Standardordner vorgibt, ich will aber ~/ haben. >> >> In der .emacs steht >> >> >> (setq default-directory "/Users/mente/") >> >> >> Aber, ausgewertet wird es wohl nicht, denn: >> >> >> >> default-directory is a variable defined in ‘C source code’. >> Its value is "/" >> Local in buffer *unsent posting on de.comp.editoren*; global value is nil >> >> Automatically becomes permanently buffer-local when set. >> This variable is safe as a file local variable if its value >> satisfies the predicate ‘stringp’. >> Probably introduced at or before Emacs version 1.11. >> >> Documentation: >> Name of default directory of current buffer. >> It should be an absolute directory name; on GNU and Unix systems, >> these names start with ‘/’ or ‘~’ and end with ‘/’. >> To interactively change the default directory, use command ‘cd’. >> >> >> >> Was kann man hier machen? > > vielleicht > > (setq-default default-directory "~/") > > (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local Variables) Nein, tut auch nicht: --8<---------------cut here---------------start------------->8--- default-directory is a variable defined in ‘C source code’. Its value is "/" Local in buffer *GNU Emacs*; global value is "~/" Automatically becomes permanently buffer-local when set. This variable is safe as a file local variable if its value satisfies the predicate ‘stringp’. Probably introduced at or before Emacs version 1.11. Documentation: Name of default directory of current buffer. It should be an absolute directory name; on GNU and Unix systems, these names start with ‘/’ or ‘~’ and end with ‘/’. To interactively change the default directory, use command ‘cd’. --8<---------------cut here---------------end--------------->8--- -- Beste Grüße, Clemens Schüller
[toc] | [prev] | [next] | [standalone]
| From | Helmut Waitzmann <nn.throttle@xoxy.net> |
|---|---|
| Date | 2020-02-22 18:34 +0100 |
| Message-ID | <878skuedax.fsf@helmutwaitzmann.news.arcor.de> |
| In reply to | #255 |
Clemens Schüller <cs.usenet@mailbox.org>: >Stefan Wiens schrieb am 22. Feb. 2020 um 12:23: >> Clemens Schüller <cs.usenet@mailbox.org> writes: >> (setq-default default-directory "~/") >> >> (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local Variables) >> > >Nein, tut auch nicht: > Tut immerhin, was es soll, denn „global value is "~/"“ (nur scheint das nichts zu nützen): >--8<---------------cut here---------------start------------->8--- >default-directory is a variable defined in ‘C source code’. >Its value is "/" >Local in buffer *GNU Emacs*; global value is "~/" > > Automatically becomes permanently buffer-local when set. > This variable is safe as a file local variable if its value > satisfies the predicate ‘stringp’. > Probably introduced at or before Emacs version 1.11. > >Documentation: >Name of default directory of current buffer. >It should be an absolute directory name; on GNU and Unix systems, >these names start with ‘/’ or ‘~’ and end with ‘/’. >To interactively change the default directory, use command ‘cd’. >--8<---------------cut here---------------end--------------->8--- Ich habe leider keine Erklärung für das bemängelte Verhalten, nur ein paar Fragen, die vielleicht helfen, die Ursache zu finden: In welchem Arbeitsverzeichnis startest du den Emacs? Hast du vielleicht in der Emacs‐Konfiguration irgendwo ein „cd“‐Kommando stehen? Wie verhält sich der Emacs, wenn du ihn mit der Option „--no-init-file“ startest? Und wenn du zusätzlich noch die Option „--no-site-file“ hinzunimmst? Wird dem Emacs Zugriff auf das Verzeichnis „~/“ und die Datei „~/.emacs“ erlaubt?
[toc] | [prev] | [next] | [standalone]
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-02-22 18:49 +0100 |
| Message-ID | <m2a75av7fb.warhorse@cmschueller.my-fqdn.de> |
| In reply to | #256 |
Servus! Helmut Waitzmann schrieb am 22. Feb. 2020 um 18:34: > Clemens Schüller <cs.usenet@mailbox.org>: >>Stefan Wiens schrieb am 22. Feb. 2020 um 12:23: >>> Clemens Schüller <cs.usenet@mailbox.org> writes: >>> (setq-default default-directory "~/") >>> (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local >>> Variables) >> >> Nein, tut auch nicht: > > Tut immerhin, was es soll, denn „global value is "~/"“ (nur scheint > das nichts zu nützen): > >>--8<---------------cut here---------------start------------->8--- >>default-directory is a variable defined in ‘C source code’. >>Its value is "/" >>Local in buffer *GNU Emacs*; global value is "~/" >> >> Automatically becomes permanently buffer-local when set. >> This variable is safe as a file local variable if its value >> satisfies the predicate ‘stringp’. >> Probably introduced at or before Emacs version 1.11. >> >>Documentation: >>Name of default directory of current buffer. >>It should be an absolute directory name; on GNU and Unix systems, >>these names start with ‘/’ or ‘~’ and end with ‘/’. >>To interactively change the default directory, use command ‘cd’. >>--8<---------------cut here---------------end--------------->8--- > > Ich habe leider keine Erklärung für das bemängelte Verhalten, nur ein > paar Fragen, die vielleicht helfen, die Ursache zu finden: > > In welchem Arbeitsverzeichnis startest du den Emacs? Dieser emacs rennt auf einem iMac, ist aus den git Sourcen gebaut und wird über Spotlight gestartet. Eines ist aber interessant - wenn ich den emacs aus dem Terminal raus starte, passen die "Werte" --8<---------------cut here---------------start------------->8--- default-directory is a variable defined in ‘C source code’. Its value is "~/" Local in buffer *GNU Emacs*; global value is "~/" Automatically becomes permanently buffer-local when set. This variable is safe as a file local variable if its value satisfies the predicate ‘stringp’. Probably introduced at or before Emacs version 1.11. Documentation: Name of default directory of current buffer. It should be an absolute directory name; on GNU and Unix systems, these names start with ‘/’ or ‘~’ and end with ‘/’. To interactively change the default directory, use command ‘cd’. --8<---------------cut here---------------end--------------->8--- > Hast du vielleicht in der Emacs‐Konfiguration irgendwo ein > „cd“‐Kommando stehen? Ein schnelles grep hat nichts gefunden. > Wie verhält sich der Emacs, wenn du ihn mit der Option > „--no-init-file“ startest? > > Und wenn du zusätzlich noch die Option „--no-site-file“ hinzunimmst? Siehe oben > Wird dem Emacs Zugriff auf das Verzeichnis „~/“ und die Datei > „~/.emacs“ erlaubt? Wenn ich die Pfade mit der Hand "reinprügle" kann ich die Verzeichnisse/Dateien problemlos öffnen. -- Beste Grüße, Clemens Schüller
[toc] | [prev] | [next] | [standalone]
| From | Helmut Waitzmann <nn.throttle@xoxy.net> |
|---|---|
| Date | 2020-02-22 23:20 +0100 |
| Message-ID | <87k14eclgi.fsf@helmutwaitzmann.news.arcor.de> |
| In reply to | #257 |
Clemens Schüller <cs.usenet@mailbox.org>: >Helmut Waitzmann schrieb am 22. Feb. 2020 um 18:34: > >> Ich habe leider keine Erklärung für das bemängelte Verhalten, >> nur ein paar Fragen, die vielleicht helfen, die Ursache zu >> finden: >> >> In welchem Arbeitsverzeichnis startest du den Emacs? >> > >Dieser emacs rennt auf einem iMac, ist aus den git Sourcen gebaut >und wird über Spotlight gestartet. In welchem Arbeitsverzeichnis startet Spotlight den Emacs? >Eines ist aber interessant - wenn ich den emacs aus dem Terminal >raus starte, passen die "Werte" Aus dem Terminal raus starten? Du meinst, von einem interaktiven Shell, das in dem Terminal läuft? Dann könntest du mal die Probe machen und in dem Terminal das Kommando „pwd“ eintippen. Was kommt heraus? Vermutung: Man müsste es hinbekommen, dass Spotlight den Emacs im richtigen Arbeitsverzeichnis startet, und das Problem ist behoben. Ob das geht, weiß ich nicht. Spotlight ist mir kein Begriff.
[toc] | [prev] | [next] | [standalone]
| From | Stefan Reuther <stefan.news@arcor.de> |
|---|---|
| Date | 2020-02-23 09:41 +0100 |
| Message-ID | <r2thcj.440.1@stefan.msgid.phost.de> |
| In reply to | #258 |
Am 22.02.2020 um 23:20 schrieb Helmut Waitzmann: > Vermutung: Man müsste es hinbekommen, dass Spotlight den Emacs im > richtigen Arbeitsverzeichnis startet, und das Problem ist behoben. > > Ob das geht, weiß ich nicht. Spotlight ist mir kein Begriff. Im Zweifelsfalls ein Einzeiler-Shellscript `cd $HOME && emacs` und das starten. Stefan
[toc] | [prev] | [next] | [standalone]
| From | Stefan Wiens <s.wi@gmx.net> |
|---|---|
| Date | 2020-02-23 12:01 +0100 |
| Message-ID | <87y2sto9tk.fsf@eswe.dd-dns.de> |
| In reply to | #256 |
Helmut Waitzmann <nn.throttle@xoxy.net> writes: > Clemens Schüller <cs.usenet@mailbox.org>: >>Stefan Wiens schrieb am 22. Feb. 2020 um 12:23: >>> Clemens Schüller <cs.usenet@mailbox.org> writes: > >>> (setq-default default-directory "~/") >>> >>> (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local >>> Variables) >>> >> >> Nein, tut auch nicht: >> > > Tut immerhin, was es soll, denn „global value is "~/"“ (nur scheint > das nichts zu nützen): Sieht so aus. Bei mir funktioniert es schließlich auch ohne global value. Anscheinend wird (in buffer.c) default-directory mit dem Resultat von get_current_dir_name(3) initialisiert. Emacs muss also aus dem richtigen working directory gestartet werden. -- Stefan
[toc] | [prev] | [next] | [standalone]
| From | Clemens Schüller <cs.usenet@mailbox.org> |
|---|---|
| Date | 2020-02-23 21:22 +0100 |
| Subject | Magit als Standard VCS (was: emacs - Standardordner) |
| Message-ID | <m2a759m4tk.warhorse_-_@cmschueller.my-fqdn.de> |
| In reply to | #260 |
Servus! Stefan Wiens schrieb am 23. Feb. 2020 um 12:01: > Helmut Waitzmann <nn.throttle@xoxy.net> writes: >> Clemens Schüller <cs.usenet@mailbox.org>: >>>Stefan Wiens schrieb am 22. Feb. 2020 um 12:23: >>>> Clemens Schüller <cs.usenet@mailbox.org> writes: >> >>>> (setq-default default-directory "~/") >>>> >>>> (Hinweis in elisp.info: 11.10.1 Introduction to Buffer-Local >>>> Variables) >>>> >>> >>> Nein, tut auch nicht: >>> >> >> Tut immerhin, was es soll, denn „global value is "~/"“ (nur scheint >> das nichts zu nützen): > > Sieht so aus. Bei mir funktioniert es schließlich auch ohne global > value. Anscheinend wird (in buffer.c) default-directory mit dem Resultat > von get_current_dir_name(3) initialisiert. Emacs muss also aus dem > richtigen working directory gestartet werden. Hab mittlerweile einen Shell Einzeiler geschrieben und auf den Desktop gelegt. Damit wird ~/ als Startverzeichnis festgelegt. Jetzt muss ich nur noch rausfinden, wie ich emacs beibringe, magit als Default VCS zu verwenden. Momentan eiert er zw. vc-git und Egg herum. Any hints? Danke Euch allen -- Beste Grüße, Clemens Schüller
[toc] | [prev] | [standalone]
Back to top | Article view | de.comp.editoren
csiph-web