From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Grover Newsgroups: gmane.emacs.bugs Subject: bug#11381: 23.3; isearch-search-and-update issue? Date: Sun, 29 Apr 2012 15:31:48 -0700 Message-ID: <4F9DC154.2000605@groveronline.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1335740384 10785 80.91.229.3 (29 Apr 2012 22:59:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2012 22:59:44 +0000 (UTC) To: 11381@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 30 00:59:41 2012 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 1SOd5h-0006zb-0w for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Apr 2012 00:59:41 +0200 Original-Received: from localhost ([::1]:53737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOd5g-000334-9a for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Apr 2012 18:59:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOd4v-00032I-HL for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:58:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOd4t-0001Dc-7r for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:58:53 -0400 Original-Received: from [140.186.70.43] (port=57160 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOd4t-0001DQ-4R for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:58:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SOd62-0003EM-K2 for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 19:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Grover Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Apr 2012 23:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11381 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.133574038612368 (code B ref -1); Sun, 29 Apr 2012 23:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Apr 2012 22:59:46 +0000 Original-Received: from localhost ([127.0.0.1]:58194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SOd5V-0003D3-WE for submit@debbugs.gnu.org; Sun, 29 Apr 2012 18:59:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38411) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SOcgG-0002bA-3X for submit@debbugs.gnu.org; Sun, 29 Apr 2012 18:33:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOces-0001lJ-Q8 for submit@debbugs.gnu.org; Sun, 29 Apr 2012 18:32:01 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOces-0001lE-NF for submit@debbugs.gnu.org; Sun, 29 Apr 2012 18:31:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOceq-0000QQ-FU for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:31:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SOcen-0001kz-UK for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:31:55 -0400 Original-Received: from pigeon.buunabet.com ([198.145.19.6]:33931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SOcen-0001ks-L2 for bug-gnu-emacs@gnu.org; Sun, 29 Apr 2012 18:31:53 -0400 Original-Received: by pigeon.buunabet.com (Postfix, from userid 501) id 30E7B5FECF; Sun, 29 Apr 2012 15:31:50 -0700 (PDT) Original-Received: from [192.168.1.112] (c-76-115-41-54.hsd1.or.comcast.net [76.115.41.54]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by pigeon.buunabet.com (Postfix) with ESMTPSA id 086E65FD42 for ; Sun, 29 Apr 2012 15:31:48 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 X-Enigmail-Version: 1.4.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 29 Apr 2012 18:59:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sun, 29 Apr 2012 18:59:38 -0400 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:59638 Archived-At: Hi I'm trying to use the following macro as defined on the emacs wiki: http://emacswiki.org/emacs/SearchAtPoint#toc10 (defun my-isearch-word-at-point () (interactive) (call-interactively 'isearch-forward-regexp)) (defun my-isearch-yank-word-hook () (when (equal this-command 'my-isearch-word-at-point) (let ((string (concat "\\_<" (buffer-substring-no-properties (progn (skip-syntax-backward "w_") (point)) (progn (skip-syntax-forward "w_") (point))) "\\_>"))) (if (and isearch-case-fold-search (eq 'not-yanks search-upper-case)) (setq string (downcase string))) (setq isearch-string string isearch-message (concat isearch-message (mapconcat 'isearch-text-char-description string "")) isearch-yank-flag t) (isearch-search-and-update)))) (add-hook 'isearch-mode-hook 'my-isearch-yank-word-hook) (global-set-key "\M-8" 'my-isearch-word-at-point) However, it's saying "wrong type argument: arrayp nil" sometimes. Am I doing something wrong or is this a bug? Thanks -- Andy In GNU Emacs 23.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.8) of 2012-01-13 on x86-04.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11104000 configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: which-function-mode: t show-paren-mode: t desktop-save-mode: t cua-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-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-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-e M-e M-q M-e M-e ; ; C-x C-s M-e M-e M-e C-s i s e a r c h - y a n k - f l a g C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s M-x f i l l c C-h C-h C-h C-g C-g C-h v f i l l c o l C-x 1 M-e M-e M-e M-e M-q C-x C-e M-8 M-8 M-8 M-8 M-8 Recent messages: Saving file /home/agrover/git/conffiles/.emacs.d/init.el... Wrote /home/agrover/git/conffiles/.emacs.d/init.el Mark saved where search started [2 times] Making completion list... Quit Type C-x 1 to delete the help window. my-isearch-yank-word-hook isearch-search-and-update: Wrong type argument: arrayp, nil Mark saved where search started isearch-search-and-update: Wrong type argument: arrayp, nil [3 times] isearch-search-and-update: Wrong type argument: arrayp, nil Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug pp jka-compr find-func help-mode view help-fns newcomment multi-isearch hideshow which-func imenu cc-mode cc-fonts easymenu cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt hi-lock vc-git midnight swbuff ido saveplace paren desktop cua-base cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)