From: "Chris Moore" <dooglus@gmail.com>
To: rms@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: hexl: doesn't play nicely with dynamic-completion-mode
Date: Sun, 9 Sep 2007 20:01:30 +0200 [thread overview]
Message-ID: <a9691ee20709091101o8f56f0oc8a7657845b4baba@mail.gmail.com> (raw)
In-Reply-To: <E1IUCIj-0000B4-Rz@fencepost.gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 1101 bytes --]
On 9/9/07, Richard Stallman <rms@gnu.org> wrote:
> This is an inelegant way of doing it;
> does it fix your problem?
No, it doesn't. It ends up calling self-insert-command, which inserts the
'.' character, rather than calling hexl-self-insert-command, which inserts
the hex code for the '.' character.
This is an inelegant way of doing it which does work:
*** Backup/completion.el.~1~ Sun Sep 9 19:44:37 2007
--- completion.el Sun Sep 9 19:58:42 2007
***************
*** 2231,2238 ****
(defun completion-separator-self-insert-command (arg)
(interactive "p")
! (use-completion-before-separator)
! (self-insert-command arg))
(defun completion-separator-self-insert-autofilling (arg)
(interactive "p")
--- 2231,2241 ----
(defun completion-separator-self-insert-command (arg)
(interactive "p")
! (message "major is '%s'" major-mode)
! (if (eq major-mode 'hexl-mode)
! (hexl-self-insert-command arg)
! (use-completion-before-separator)
! (self-insert-command arg)))
(defun completion-separator-self-insert-autofilling (arg)
(interactive "p")
[-- Attachment #1.2: Type: text/html, Size: 1830 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-09-09 18:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2r6tcu25g.fsf@gmail.com>
2007-09-08 14:47 ` hexl: doesn't play nicely with dynamic-completion-mode Chris Moore
[not found] ` <E1IUCIj-0000B4-Rz@fencepost.gnu.org>
2007-09-09 18:01 ` Chris Moore [this message]
2007-09-10 1:13 ` Richard Stallman
2007-09-10 11:35 ` Chris Moore
2007-09-10 14:14 ` Stefan Monnier
2007-09-10 18:43 ` Chris Moore
2007-09-10 20:20 ` Stefan Monnier
2007-09-13 8:26 ` Johan Bockgård
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=a9691ee20709091101o8f56f0oc8a7657845b4baba@mail.gmail.com \
--to=dooglus@gmail.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=rms@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.