GNU bug report logs - #34648
26.1; emacs-client: gpm-mouse rejected at daemon launch

Previous Next

Package: emacs;

Reported by: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>

Date: Mon, 25 Feb 2019 15:00:02 UTC

Severity: normal

Found in version 26.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34648 in the body.
You can then email your comments to 34648 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34648; Package emacs. (Mon, 25 Feb 2019 15:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 25 Feb 2019 15:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Mon, 25 Feb 2019 11:50:57 +0000 (UTC)
[Message part 1 (text/plain, inline)]
Starting emacs daemon in console as:

emacs -u user -chdir /home/user --fg-daemon=emacs.user --debug-init

outputs:

Loading t-mouse...
Loading t-mouse...done
Error setting gpm-mouse-mode: (error Gpm-mouse only works in the GNU/Linux console)
Starting Emacs daemon.

Consequently mouse won't be usable when connecting to daemon, whereas standalone emacs launched in console has mouse enabled.

Context:

cat /home/user/.emacs

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

 (set-background-color "black")
 (set-face-background 'default "black")
 (set-face-background 'region "black")
 (set-face-foreground 'default "white")
 (set-face-foreground 'region "gray60")
 (set-foreground-color "white")
 (set-cursor-color "red")

(setq make-backup-files nil) ; stop creating backup~ files
(setq auto-save-default nil) ; stop creating #autosave# files

(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.
 '(gpm-mouse-mode t))

(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.
 )

NB: bug reported at https://bugs.gentoo.org/677826
Thks

In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu)
 of 2019-02-12 built on asuslpm
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description:    Gentoo Base System release 2.6

Recent messages:
Loading t-mouse...done
Loading xt-mouse...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --prefix=/usr --build=x86_64-pc-linux-gnu
 --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
 --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
 --localstatedir=/var/lib --disable-silent-rules
 --docdir=/usr/share/doc/emacs-26.1-r3
 --htmldir=/usr/share/doc/emacs-26.1-r3/html --libdir=/usr/lib64
 --program-suffix=-emacs-26 --infodir=/usr/share/info/emacs-26
 --localstatedir=/var
 --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=no --disable-acl --without-dbus
 --without-modules --without-gameuser --with-gpm --without-kerberos
 --without-kerberos5 --without-lcms2 --without-xml2 --without-mailutils
 --without-selinux --without-gnutls --without-libsystemd
 --without-threads --without-wide-int --without-zlib --with-sound=oss
 --with-x --without-ns --without-gconf --without-gsettings
 --with-toolkit-scroll-bars --without-gif --without-jpeg --without-png
 --without-rsvg --without-tiff --with-xpm --without-imagemagick
 --with-xft --without-cairo --without-libotf --without-m17n-flt
 --with-x-toolkit=no 'CFLAGS=-march=native -mtune=skylake -O2 -pipe'
 CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,-fuse-ld=bfd -Wl,--enable-new-dtags
 -march=native -mtune=skylake -O2 -pipe''

Configured features:
XPM SOUND GPM FREETYPE XFT OLDXMENU X11

Important settings:
  value of $LANG: fr_FR.utf8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  xterm-mouse-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils elec-pair web-mode advice disp-table
xt-mouse t-mouse cus-start cus-load finder-inf package easymenu
epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib site-gentoo time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dynamic-setting font-render-setting x multi-tty
make-network-process emacs)

Memory information:
((conses 16 127340 11451)
 (symbols 48 23547 1)
 (miscs 40 77 115)
 (strings 32 39253 1295)
 (string-bytes 1 1043338)
 (vectors 16 17583)
 (vector-slots 8 526650 8204)
 (floats 8 60 243)
 (intervals 56 307 0)
 (buffers 992 12))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34648; Package emacs. (Mon, 25 Feb 2019 16:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 34648 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
Cc: 34648 <at> debbugs.gnu.org
Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Mon, 25 Feb 2019 18:17:10 +0200
> Date: Mon, 25 Feb 2019 11:50:57 +0000 (UTC)
> From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
> 
> Starting emacs daemon in console as:
> 
> emacs -u user -chdir /home/user --fg-daemon=emacs.user --debug-init
> 
> outputs:
> 
> Loading t-mouse...
> Loading t-mouse...done
> Error setting gpm-mouse-mode: (error Gpm-mouse only works in the GNU/Linux console)
> Starting Emacs daemon.
> 
> Consequently mouse won't be usable when connecting to daemon, whereas standalone emacs launched in
> console has mouse enabled.

Did you try to set gpm-mouse-mode from after-make-frame-functions
hook?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34648; Package emacs. (Tue, 26 Feb 2019 00:13:01 GMT) Full text and rfc822 format available.

Message #11 received at 34648 <at> debbugs.gnu.org (full text, mbox):

From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "34648 <at> debbugs.gnu.org" <34648 <at> debbugs.gnu.org>
Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Tue, 26 Feb 2019 00:12:07 +0000 (UTC)
[Message part 1 (text/plain, inline)]
 I've just tried in .emacs:
(add-hook 'after-make-frame-functions
      (lambda (frame)
        (when (display-graphic-p frame)
          (gpm-mouse-mode t))))
Which does nothing. Switching from when to unless trigger the initial error message.

@ https://bugs.gentoo.org/677826 Gentoo's support noticed: 
The error message is output in function gpm-mouse-start in term.c:

DEFUN ("gpm-mouse-start", Fgpm_mouse_start, Sgpm_mouse_start,
       0, 0, 0,
       doc: /* Open a connection to Gpm.
Gpm-mouse can only be activated for one tty at a time.  */)
  (void)
{
  struct frame *f = SELECTED_FRAME ();
  struct tty_display_info *tty
    = ((f)->output_method == output_termcap
       ? (f)->terminal->display_info.tty : NULL);
  Gpm_Connect connection;

  if (!tty)
    error ("Gpm-mouse only works in the GNU/Linux console");

Debugging with gdb shows that when connected with emacsclient, (f)->output_method is output_initial, while with a standalone Emacs it is output_termcap.
Not sure if the conditional should be changed (to test for output_termcap or output_initial), or if the value of (f)->output_method is wrong.
EOF https://bugs.gentoo.org/677826

My console env:

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
ANDROID_HOME=/opt/android-sdk-update-manager
LANG=fr_FR.utf8
HISTCONTROL= erasedups:ignoreboth
LESS=-R -M --shift 5
OPENGL_PROFILE=xorg-x11
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/php/cli-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/gconf /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash
EDITOR=nano
PRELINK_PATH_MASK=/usr/lib64/klibc
DISTCC_DIR=/var/tmp/portage/.distcc
GCC_SPECS=
XDG_VTNR=3
XDG_SESSION_ID=29
HUSHLOGIN=FALSE
USER=luc
PAGER=/usr/bin/less
GOPATH=/home/luc/workspace/go
PWD=/home/luc
MANPAGER=manpager
HOME=/home/luc
GSETTINGS_BACKEND=dconf
XDG_DATA_DIRS=/usr/local/share:/usr/share
WINEDLLOVERRIDES=winemenubuilder.exe=d
LADSPA_PATH=/usr/lib64/ladspa
LV2_PATH=/usr/lib64/lv2
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
SHELL=/bin/bash
TERM=linux
ANDROID_SWT=/usr/share/swt-3.7/lib
SHLVL=1
XDG_SEAT=seat0
MANPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/man:/usr/lib/llvm/6/share/man:/usr/lib64/php7.2/man/:/usr/local/share/man:/usr/share/man:/usr/share/rust-bin-1.32.0/man
LOGNAME=luc
XDG_RUNTIME_DIR=/var/run/user/1000
SNOWMIX=/usr/local/lib/Snowmix-0.5.1
XDG_CONFIG_DIRS=/etc/xdg
PATH=/usr/local/heroku/bin:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/bin:/home/luc/workspace/go/bin
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/info:/usr/share/info:/usr/share/info/emacs-26
XDG_SESSION_COOKIE=asuslpm-1551139030.145530-316395642
LESSOPEN=|lesspipe %s
_=/usr/bin/env
    Le lundi 25 février 2019 à 19:17:08 UTC+3, Eli Zaretskii <eliz <at> gnu.org> a écrit :  
 
 > Date: Mon, 25 Feb 2019 11:50:57 +0000 (UTC)
> From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
> 
> Starting emacs daemon in console as:
> 
> emacs -u user -chdir /home/user --fg-daemon=emacs.user --debug-init
> 
> outputs:
> 
> Loading t-mouse...
> Loading t-mouse...done
> Error setting gpm-mouse-mode: (error Gpm-mouse only works in the GNU/Linux console)
> Starting Emacs daemon.
> 
> Consequently mouse won't be usable when connecting to daemon, whereas standalone emacs launched in
> console has mouse enabled.

Did you try to set gpm-mouse-mode from after-make-frame-functions
hook?
  
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34648; Package emacs. (Tue, 26 Feb 2019 00:14:02 GMT) Full text and rfc822 format available.

Message #14 received at 34648 <at> debbugs.gnu.org (full text, mbox):

From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "34648 <at> debbugs.gnu.org" <34648 <at> debbugs.gnu.org>
Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Tue, 26 Feb 2019 00:13:21 +0000 (UTC)
[Message part 1 (text/plain, inline)]
 

    Le mardi 26 février 2019 à 03:12:07 UTC+3, Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com> a écrit :  
 
  I've just tried in .emacs:
(add-hook 'after-make-frame-functions
      (lambda (frame)
        (when (display-graphic-p frame)
          (gpm-mouse-mode t))))
Which does nothing. Switching from when to unless trigger the initial error message.

@ https://bugs.gentoo.org/677826 Gentoo's support noticed: 
The error message is output in function gpm-mouse-start in term.c:

DEFUN ("gpm-mouse-start", Fgpm_mouse_start, Sgpm_mouse_start,
       0, 0, 0,
       doc: /* Open a connection to Gpm.
Gpm-mouse can only be activated for one tty at a time.  */)
  (void)
{
  struct frame *f = SELECTED_FRAME ();
  struct tty_display_info *tty
    = ((f)->output_method == output_termcap
       ? (f)->terminal->display_info.tty : NULL);
  Gpm_Connect connection;

  if (!tty)
    error ("Gpm-mouse only works in the GNU/Linux console");

Debugging with gdb shows that when connected with emacsclient, (f)->output_method is output_initial, while with a standalone Emacs it is output_termcap.
Not sure if the conditional should be changed (to test for output_termcap or output_initial), or if the value of (f)->output_method is wrong.
EOF https://bugs.gentoo.org/677826

My console env:

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
ANDROID_HOME=/opt/android-sdk-update-manager
LANG=fr_FR.utf8
HISTCONTROL= erasedups:ignoreboth
LESS=-R -M --shift 5
OPENGL_PROFILE=xorg-x11
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/php/cli-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/gconf /etc/terminfo /etc/dconf /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild /etc/splash
EDITOR=nano
PRELINK_PATH_MASK=/usr/lib64/klibc
DISTCC_DIR=/var/tmp/portage/.distcc
GCC_SPECS=
XDG_VTNR=3
XDG_SESSION_ID=29
HUSHLOGIN=FALSE
USER=luc
PAGER=/usr/bin/less
GOPATH=/home/luc/workspace/go
PWD=/home/luc
MANPAGER=manpager
HOME=/home/luc
GSETTINGS_BACKEND=dconf
XDG_DATA_DIRS=/usr/local/share:/usr/share
WINEDLLOVERRIDES=winemenubuilder.exe=d
LADSPA_PATH=/usr/lib64/ladspa
LV2_PATH=/usr/lib64/lv2
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
SHELL=/bin/bash
TERM=linux
ANDROID_SWT=/usr/share/swt-3.7/lib
SHLVL=1
XDG_SEAT=seat0
MANPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/man:/usr/lib/llvm/6/share/man:/usr/lib64/php7.2/man/:/usr/local/share/man:/usr/share/man:/usr/share/rust-bin-1.32.0/man
LOGNAME=luc
XDG_RUNTIME_DIR=/var/run/user/1000
SNOWMIX=/usr/local/lib/Snowmix-0.5.1
XDG_CONFIG_DIRS=/etc/xdg
PATH=/usr/local/heroku/bin:/usr/lib/llvm/6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/bin:/home/luc/workspace/go/bin
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/8.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.30/info:/usr/share/info:/usr/share/info/emacs-26
XDG_SESSION_COOKIE=asuslpm-1551139030.145530-316395642
LESSOPEN=|lesspipe %s
_=/usr/bin/env
    Le lundi 25 février 2019 à 19:17:08 UTC+3, Eli Zaretskii <eliz <at> gnu.org> a écrit :  
 
 > Date: Mon, 25 Feb 2019 11:50:57 +0000 (UTC)
> From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
> 
> Starting emacs daemon in console as:
> 
> emacs -u user -chdir /home/user --fg-daemon=emacs.user --debug-init
> 
> outputs:
> 
> Loading t-mouse...
> Loading t-mouse...done
> Error setting gpm-mouse-mode: (error Gpm-mouse only works in the GNU/Linux console)
> Starting Emacs daemon.
> 
> Consequently mouse won't be usable when connecting to daemon, whereas standalone emacs launched in
> console has mouse enabled.

Did you try to set gpm-mouse-mode from after-make-frame-functions
hook?
    
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34648; Package emacs. (Tue, 26 Feb 2019 15:49:02 GMT) Full text and rfc822 format available.

Message #17 received at 34648 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
Cc: 34648 <at> debbugs.gnu.org
Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Tue, 26 Feb 2019 17:48:49 +0200
> Date: Tue, 26 Feb 2019 00:12:07 +0000 (UTC)
> From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
> Cc: "34648 <at> debbugs.gnu.org" <34648 <at> debbugs.gnu.org>
> 
> I've just tried in .emacs:
> (add-hook 'after-make-frame-functions
>       (lambda (frame)
>         (when (display-graphic-p frame)  <<<<<<<<<<<<<<<<<
>           (gpm-mouse-mode t))))
> Which does nothing.

The display-graphic-p test is wrong: you want GPM on TTY frames, not
on GUI frames.

> Switching from when to unless trigger the initial error message.

Parse error.




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Tue, 18 Aug 2020 17:01:02 GMT) Full text and rfc822 format available.

Notification sent to Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>:
bug acknowledged by developer. (Tue, 18 Aug 2020 17:01:02 GMT) Full text and rfc822 format available.

Message #22 received at 34648-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 34648-done <at> debbugs.gnu.org, Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
Subject: Re: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch
Date: Tue, 18 Aug 2020 17:00:42 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Tue, 26 Feb 2019 00:12:07 +0000 (UTC)
>> From: Luc Pierard de Maujouy <lpdmlpdm <at> yahoo.com>
>> Cc: "34648 <at> debbugs.gnu.org" <34648 <at> debbugs.gnu.org>
>>
>> I've just tried in .emacs:
>> (add-hook 'after-make-frame-functions
>>       (lambda (frame)
>>         (when (display-graphic-p frame)  <<<<<<<<<<<<<<<<<
>>           (gpm-mouse-mode t))))
>> Which does nothing.
>
> The display-graphic-p test is wrong: you want GPM on TTY frames, not
> on GUI frames.
>
>> Switching from when to unless trigger the initial error message.
>
> Parse error.

So it seems like the user was trying to do the wrong thing here, and
there has been no updates in 1.5 years.  So I'm going to assume this is
resolved and am therefore closing this bug now.

If this conclusion is incorrect, please reply to this email (use "Reply
to all" in your email client) and we can reopen the bug report.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 16 Sep 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.