On 2020/08/27 12:13:08 +0200, Daniel Schlieper wrote:
Dear Werner,
many thanks for your kind help. I am now running TW 20200824-0. Also, I deinstalled emacs, rebooted the machine, then installed emacs from editors.
emacs -Q test.txt works fine.
Here is the complete protocol: daniel@capriolo:~> kate test.txt kf.kio.widgets.kdirmodel: protocol mismatch: "" vs "file" daniel@capriolo:~> # Comment: I can open a file with kate
Nevertheless it throws a warning message, OK this is KDE, there is always some nasty messsages at all.
daniel@capriolo:~> emacs test.txt daniel@capriolo:~> # Comment: I cannot open a file with emacs daniel@capriolo:~> bash -x emacs test.txt 2> trace.log no emacs binary found
If you install emacs package you also have to install at least emacs-nox and emacs-x11
daniel@capriolo:~> cat trace.log + : gtk + test gtk = gtk + LC_NUMERIC=POSIX + XLIB_SKIP_ARGB_VISUALS=1 + GDK_RGBA=0 + export LC_NUMERIC XLIB_SKIP_ARGB_VISUALS GDK_RGBA + arg0=emacs + argv=("$@") + test -x emacs-gtk + test -x emacs-x11 + test -x emacs-nox + echo 'no emacs binary found' + exit 1 daniel@capriolo:~> which emacs /usr/bin/emacs
Ah ... some steps missed here ... or you execution path is broken are ypu using bash or zsh or tcsh or any other shell, like ksh or mksh or whatsoever as your SHELL?
daniel@capriolo:~> bash -x /usr/bin/emacs test.txt 2> trace.log daniel@capriolo:~> # Comment: Emacs opens scratch, but not test.txt daniel@capriolo:~> cat trace.log + : gtk + test gtk = gtk + LC_NUMERIC=POSIX + XLIB_SKIP_ARGB_VISUALS=1 + GDK_RGBA=0 + export LC_NUMERIC XLIB_SKIP_ARGB_VISUALS GDK_RGBA + arg0=/usr/bin/emacs + argv=("$@") + test -x /usr/bin/emacs-gtk + set -- /usr/bin/emacs-gtk ++ type -p dbus-daemon + dbusdaemon=/usr/bin/dbus-daemon + test -n /usr/bin/dbus-daemon + test -s /var/lib/dbus/machine-id + read -t1 mid + test -n unix:path=/run/user/1000/bus + for guid in ${DBUS_SESSION_BUS_ADDRESS//,/ } + case "$guid" in + dpid= + for suid in "${HOME}/.dbus/session-bus/"${mid}* + test -e '/home/daniel/.dbus/session-bus/b1eba01c39ff4065abb49f7b4e7c0155*' + break + test -z '' + case ":$DBUS_SESSION_BUS_ADDRESS" in + test -z unix:path=/run/user/1000/bus + unset mid guid suid dadd + test -z unix:path=/run/user/1000/bus + test -S /run/user/1000/bus ++ type -p dbus-update-activation-environment + dbusupdate=/usr/bin/dbus-update-activation-environment ++ systemctl --user is-active dbus.service + dbusstatus=active + test -n /usr/bin/dbus-update-activation-environment -a active '!=' active + unset dbuslaunch dbusdaemon + test -z NO_AT_BRIDGE + unset G_MESSAGES_DEBUG G_DEBUG G_MESSAGES_PREFIXED + exec -a /usr/bin/emacs /usr/bin/emacs-gtk test.txt daniel@capriolo:~> type emacs emacs is hashed (/usr/bin/emacs)
That is not a bash, as this would be emacs is /usr/bin/emacs And why it is now in path?
daniel@capriolo:~> locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL=
fine
daniel@capriolo:~> emacs -Q test.txt daniel@capriolo:~> # Comment: all fine: Opens test.txt
If the -Q option results in a OK behaviour, does that mean I have problems with the X resources?
Something is wrong, maybe one of you X resources or one of the emacs packages below your ~/.emacs.d/ of below /usr/share/emacs/site-lisp/
here is my humble init-file: daniel@capriolo:~> cd .emacs.d/ daniel@capriolo:~/.emacs.d> ls early-init.el daniel@capriolo:~/.emacs.d> cat early-init.el (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(delete-selection-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 120 :width normal)))))
This does not harm. Tell me what shell are you using, do you have some aliases and/or shell functionss around emacs. Also show me the X resources xrdb -query | grep -i emacs and do you have an Emacs file in your HOME directory? What is below ~/.emacs.d/ and do the files ~/.emacs and ~/.gnu-emacs and their backup/custom variants exist: ls -l ~/.emacs* ~/.gnu-emacs* find ~/.emacs.d/ ls -l ~/Emacs rpm -qf /usr/share/emacs/site-lisp/* | sort -u -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr