From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#15667: 24.3.50; ns-win.el -- keymap assignments for isearch-repeat-backward/forward. Date: Sun, 20 Oct 2013 17:02:02 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1382313796 28663 80.91.229.3 (21 Oct 2013 00:03:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 00:03:16 +0000 (UTC) To: 15667@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 21 02:03:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VY2xq-0007f3-Bh for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2013 02:03:18 +0200 Original-Received: from localhost ([::1]:37751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2xp-0006P6-Ke for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Oct 2013 20:03:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2xg-0006Ow-Hk for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VY2xa-0003qC-Bd for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:03:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2xa-0003q8-83 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VY2xZ-0008O5-Q6 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2013 00:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15667 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138231375132198 (code B ref -1); Mon, 21 Oct 2013 00:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2013 00:02:31 +0000 Original-Received: from localhost ([127.0.0.1]:59617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VY2x4-0008NF-16 for submit@debbugs.gnu.org; Sun, 20 Oct 2013 20:02:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41352) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VY2x1-0008Mz-KT for submit@debbugs.gnu.org; Sun, 20 Oct 2013 20:02:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VY2wq-0003n3-9O for submit@debbugs.gnu.org; Sun, 20 Oct 2013 20:02:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2wq-0003mz-6X for submit@debbugs.gnu.org; Sun, 20 Oct 2013 20:02:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2wk-0006NB-BC for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:02:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VY2we-0003mC-RB for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:02:10 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:41517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VY2we-0003m8-Hu for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:02:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date; bh=7f5VEHxQOYFUI4tBbCfqMs2lrFbvHhtZI5MXvdSldgg=; b=4XFwqXCXSxcdtkoJ+CWL+NqUOkviWWMSleII9FuwuTkQuKrd0Uj6Q/IT+x/1y53h67MqZL/42HO8540w/X7QQ1NZeeOiOVLT9DmKvnk0/ORpEWONXQbL4fh1T5bOkiXO; Original-Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:51745 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.80.1) (envelope-from ) id 1VY2wb-0002As-NJ for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2013 20:02:01 -0400 User-Agent: / () / () APEL/10.8 Emacs/24.3.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79436 Archived-At: The global-map key assignments within ns-win.el for isearch-repeat-backward and isearch-repeat-forward are insufficient to achieve the behavior contemplated by the source code of isearch.el. Specifically, the isearch-mode terminates immediately after invoking the repeat functions and the sticky highlight of searches found does not automatically cleanup. Invoking these repeat functions should keep isearch-mode active, and then sticky highlight should automatically clean up when exiting the isearch (e.g., by pressing the return key after the search). The problem is corrected by the following keymap assignments, which mirrors the usage within the source code of isearch.el (define-key global-map [?\s-f] 'isearch-forward) (define-key esc-map [?\s-f] 'isearch-forward-regexp) (define-key minibuffer-local-isearch-map [?\s-f] 'isearch-forward-exit-minibuffer) (define-key isearch-mode-map [?\s-f] 'isearch-repeat-forward) (define-key global-map [?\s-F] 'isearch-backward) (define-key esc-map [?\s-F] 'isearch-backward-regexp) (define-key minibuffer-local-isearch-map [?\s-F] 'isearch-reverse-exit-minibuffer) (define-key isearch-mode-map [?\s-F] 'isearch-repeat-backward) While I cannot profess to have a complete understanding of all the capabilities of isearch, I am certain that there is something special about invoking isearch-repeat-backward/forward after having first performed isearch-backward/forward, and there is something special about the fact that the isearch-mode-map is used while in isearch-mode. I launched the following StackOverflow thread about 4 months ago and just figured out the problem today: http://stackoverflow.com/questions/17204127/how-to-disable-sticky-highlight-for-repeat-isearch-forward-backward I realize that the Emacs team would like to incorporate Command-G and Command-g to mirror built-in OSX functionality, and I agree. I will leave that implementation up to you. Keith esq@lawlist.com ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 24.3.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2013-10-05 on MP.local Bzr revision: 114534 monnier@iro.umontreal.ca-20131005183708-jfv7jyagzpkqkljx Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns' Important settings: locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: whitespace-mode: t global-linum-mode: t linum-mode: t delete-selection-mode: t flyspell-mode: t yas-global-mode: t yas-minor-mode: t desktop-save-mode: t frame-bufs-mode: t tabbar-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent input: Recent messages: Loading /Users/HOME/.0.data/.0.emacs/init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Starting new Ispell process [/Users/HOME/.0.data/.0.emacs/elpa/bin/aspell::english] ... [yas] Prepared just-in-time loading for /Users/HOME/.0.data/.0.emacs/elpa/yasnippet/snippets [yas] Reloaded everything (snippets will load just-in-time).... [yas] Loading for `text-mode', just-in-time: (yas--load-directory-1 /Users/HOME/.0.data/.0.emacs/elpa/yasnippet/snippets/text-mode (quote text-mode) (quote nil))! [yas] Loading compiled snippets from /Users/HOME/.0.data/.0.emacs/elpa/yasnippet/snippets/text-mode Wrote /Users/HOME/.0.data/.0.emacs/.lock Load-path shadows: /Users/HOME/.0.data/.0.emacs/elpa/flim/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/md4 /Users/HOME/.0.data/.0.emacs/elpa/flim/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/hex-util /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/sasl /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/sasl-ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/sasl-digest /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/sasl-cram /Users/HOME/.0.data/.0.emacs/elpa/flim/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/hmac-md5 /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/net/hmac-def /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/mail/rfc2368 /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/gnus/utf7 /Users/HOME/.0.data/.0.emacs/elpa/semi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/gnus/smime /Users/HOME/.0.data/.0.emacs/elpa/el-get/.dir-locals hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/gnus/.dir-locals /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg-pgp5 /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg-pgp /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg-parse /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg-gpg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/pgg-def /Users/HOME/.0.data/.0.emacs/elpa/utilities/longlines hides /Users/HOME/.0.data/.0.emacs/Emacs.app/Contents/Resources/lisp/obsolete/longlines Features: (shadow wl-mime mime-edit pgg-parse pccl pccl-20 signature mime-setup mail-mime-setup semi-setup mime-pgp pgg-def mime-play filename mime-image modb-standard elmo-imap4 time-stamp emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader disp-table whitespace multiple-cursors-autoloads package bbdb-autoloads bbdb wl-demo wl-draft eword-encode wl-template sendmail mail-utils elmo-net elmo-cache elmo-map elmo-dop wl-news wl-address wl-thread wl-folder wl wl-e21 linum delsel flyspell ispell savehist auto-save-buffers-enhanced yasnippet help-mode itunes osx-osascript debug multiple-cursors mc-separate-operations rectangular-region-mode mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core rect saveplace init-auctex tex-site dash desktop frameset init-wl wl-spam wl-action wl-summary ps-print ps-def lpr wl-refile wl-util pp elmo-flag elmo-localdir wl-message elmo-mime mmelmo-buffer mmelmo-imap mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric elmo-multi elmo-spam elsp-header elsp-generic elmo elmo-signal wl-highlight wl-vars wl-version epg-config elmo-msgdb modb modb-generic modb-entity luna mime elmo-util emu invisible inv-23 poem poem-e20 poem-e20_3 utf7 eword-decode mel mime-def alist std11 mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date elmo-vars elmo-version path-util poe pym static apel-ver product mime-w3m w3m-load init-tabbar init-frames edmacro kmacro tabbar frame-cmds frame-fns avoid calendar-lawlist lawlist-calendar init-org derived cl-macs gv org-capture org-mks org-agenda org-toodledo mailcap-toodledo lawlist-tls http-post-simple cl url-http tls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core gnus-util mm-util mail-prsvr password-cache url-vars mailcap json xml w3m browse-url doc-view jka-compr dired image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit cl-loaddefs cl-lib w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util org byte-opt bytecomp byte-compile cconv advice help-fns ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs hideshow easymenu highlight-parentheses redo time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process ns multi-tty emacs)