all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 25294@debbugs.gnu.org
Subject: bug#25294: 26.0.50; Allow more catch-all values for cl-defmethod's &context plus major-mode specializer
Date: Thu, 29 Dec 2016 11:13:40 -0800	[thread overview]
Message-ID: <874m1mo8ez.fsf@ericabrahamsen.net> (raw)


When defining a method using cl-defmethod with the &context and
major-mode specializer, there should be more acceptable options for
catch-all or fall-through methods. Ie, we want to create a method that
fires regardless of the major mode. These signatures don't work, but
should:

(cl-defmethod example-method ((&context (major-mode fundamental-mode))))

(cl-defmethod example-method ((&context (major-mode nil)))

(cl-defmethod example-method ((&context (major-mode t))))

Right now the only thing that works is:

(cl-defmethod example-method ())



In GNU Emacs 26.0.50.9 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.5)
 of 2016-12-26 built on clem
Repository revision: 65b997b95e284e2edc1266663e39791f68d76ad7
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
Recent messages:
Reading active file via nndraft...done
Reading active file from MTester via nnmairix...done
Checking new news...done
Saving the EBDB... done
Saving Gnus registry (4516 entries) to ~/Documents/Sync/plusone/gnus.registry.eieio...
Saving Gnus registry (size 4516) to ~/Documents/Sync/plusone/gnus.registry.eieio...done
Saving /home/eric/.emacs.d/.newsrc.eld...
Saving file /home/eric/.emacs.d/.newsrc.eld...
Wrote /home/eric/.emacs.d/.newsrc.eld
Saving /home/eric/.emacs.d/.newsrc.eld...done

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD

Important settings:
  value of $LC_CTYPE: zh_CN.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix





             reply	other threads:[~2016-12-29 19:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29 19:13 Eric Abrahamsen [this message]
2016-12-30  4:35 ` bug#25294: 26.0.50; Allow more catch-all values for cl-defmethod's &context plus major-mode specializer npostavs
2017-12-11 23:57   ` Eric Abrahamsen
2017-12-12  0:08     ` Noam Postavsky
2017-12-12  1:39 ` Noam Postavsky
2017-12-12  1:43   ` Noam Postavsky
2017-12-12  5:42   ` Eric Abrahamsen
2017-12-12 23:58     ` Noam Postavsky
2017-12-14  0:06       ` Eric Abrahamsen
2017-12-14 21:01       ` Eric Abrahamsen

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=874m1mo8ez.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=25294@debbugs.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.