GNU bug report logs - #17529
24.3; Error in hippie-expand

Previous Next

Package: emacs;

Reported by: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>

Date: Mon, 19 May 2014 16:22:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

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 17529 in the body.
You can then email your comments to 17529 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#17529; Package emacs. (Mon, 19 May 2014 16:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 19 May 2014 16:22:02 GMT) Full text and rfc822 format available.

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

From: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 18:16:17 +0200
[Message part 1 (text/plain, inline)]
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.8)
 of 2014-04-18 on buildvm-19.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.11404000
System Description:    Fedora release 20 (Heisenbug)

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=gtk3' '--with-gpm=no'
 '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-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ''

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: iESS

Minor modes in effect:
  recentf-mode: t
  global-edit-server-edit-mode: t
  diff-auto-refine-mode: t
  global-auto-revert-mode: t
  shell-dirtrack-mode: t
  eldoc-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
v a l u <return> <tab> <tab> <S-iso-lefttab> <S-iso-lefttab>
C-g M-x C-g C-h k <S-iso-lefttab> <help-echo> <down-mouse-1>
<mouse-1> q <help-echo> M-x h i p p <tab> <return>
<help-echo> <down-mouse-1> <mouse-1> <S-iso-lefttab>
C-_ C-x o <S-iso-lefttab> <down-mouse-1> <mouse-1>
M-x a p <backspace> b b r e <tab> e x <tab> <backspace>
<backspace> <tab> C-g M-x e x p a n d <tab> <tab> a
b b <tab> <return> C-h f a b b r e v - e x <tab> <return>
q <backspace> C-x o q M-x a b b r e v - e <tab> <tab>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> C-g C-h f e x p a n d - a v
<backspace> b b <tab> <return> C-x o q C-x ' C-g M-x
e x p a <tab> a b b <tab> <return> <help-echo> <help-echo>
<help-echo> C-h f e x p a n <tab> v a <backspace> <backspace>
a b b <tab> <return> C-x o C-x o C-x a e C-g C-x a
' C-g C-x o q M-b M-b M-d M-d n u <S-iso-lefttab> <S-iso-lefttab>
<S-iso-lefttab> <S-iso-lefttab> C-x ' C-g C-x a e M-x
e x p a <tab> a b b <tab> <return> u <backspace> m
. <return> SPC ) <return> d i . v a <S-iso-lefttab>
<S-iso-lefttab> <backspace> <backspace> <backspace>
<backspace> <backspace> C-x o C-x C-s C-x o M-x h i
p p i <tab> <return> M-x t o g g l e - d e <tab> <return>
e r <tab> <return> M-x h i p i p <backspace> <backspace>
p i <tab> <return> <up> C-2 <C-down> M-w q <help-echo>
<help-echo> <help-echo> M-x r e m o r t <backspace>
<backspace> <backspace> <backspace> p o r t - e m a
<tab> <return>

Recent messages:
Quit
You can run the command `expand-abbrev' with C-x '
he-init-string: Wrong type argument: integer-or-marker-p, nil [2 times]
(No changes need to be saved)
he-init-string: Wrong type argument: integer-or-marker-p, nil
Making completion list...
Debug on Error enabled globally
Entering debugger...
Mark set
Back to top level.

Load-path shadows:
~/.emacs.d/ess-utils hides /usr/share/emacs/site-lisp/ess/ess-utils
/usr/share/emacs/site-lisp/goodies/htmlize hides
/usr/share/emacs/site-lisp/htmlize/htmlize
/usr/share/emacs/site-lisp/goodies/emacs-goodies-loaddefs hides
/usr/share/emacs/site-lisp/site-start.d/emacs-goodies-loaddefs
/usr/share/emacs/site-lisp/systemc-mode hides
/usr/share/emacs/site-lisp/site-start.d/systemc-mode
/usr/share/emacs/site-lisp/camldebug hides
/usr/share/emacs/site-lisp/tuareg/camldebug
/usr/share/emacs/site-lisp/vm/tapestry hides
/usr/share/emacs/site-lisp/emacspeak/lisp/tapestry
/usr/share/emacs/site-lisp/site-start.d/maxima-modes hides
/usr/share/emacs/site-lisp/maxima/site_start.d/maxima-modes
/usr/share/emacs/site-lisp/ddskk/ccc hides
/usr/share/emacs/site-lisp/proofgeneral/ccc/ccc
/usr/share/emacs/site-lisp/emacspeak/sounds/cartoon-22k-mono/define-theme
hides /usr/share/emacs/site-lisp/emacspeak/sounds/chimes-stereo/define-theme
/usr/share/emacs/site-lisp/emacspeak/sounds/cartoon-22k-mono/define-theme
hides /usr/share/emacs/site-lisp/emacspeak/sounds/default-8k/define-theme
~/.emacs.d/cus-theme hides /usr/share/emacs/24.3/lisp/cus-theme
/usr/share/emacs/site-lisp/rinari/util/ruby-mode hides
/usr/share/emacs/24.3/lisp/progmodes/ruby-mode
/usr/share/emacs/site-lisp/verilog-mode hides
/usr/share/emacs/24.3/lisp/progmodes/verilog-mode
/usr/share/emacs/site-lisp/rinari/util/jump/which-func hides
/usr/share/emacs/24.3/lisp/progmodes/which-func
/usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides
/usr/share/emacs/24.3/lisp/gnus/spam-stat
/usr/share/emacs/site-lisp/gnus-bonus/nnnil hides
/usr/share/emacs/24.3/lisp/gnus/nnnil
/usr/share/emacs/site-lisp/gnus-bonus/nnir hides
/usr/share/emacs/24.3/lisp/gnus/nnir
/usr/share/emacs/site-lisp/timeclock hides
/usr/share/emacs/24.3/lisp/calendar/timeclock

Features:
(shadow sort mail-extr emacsbug message idna rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail
mail-utils debug etags two-column iso-transl diff view vc-bzr vc-sccs
vc-svn vc-cvs vc-rcs vc vc-dispatcher macros hippie-exp grep cperl-mode
em-unix em-term term disp-table ehelp electric em-script em-prompt em-ls
em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias
esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups
eshell esh-module esh-mode esh-util help-mode conf-mode misearch
multi-isearch skk-vars tramp-cache tramp-sh tramp tramp-compat
tramp-loaddefs format-spec vc-git bookmark pp server selinux-m4-te-mode
selinux-te-mode m4-mode recentf tree-widget dired edit-server
catalyst-server ffap magit-bisect magit-key-mode magit diff-mode
log-edit pcvs-util add-log ll-debug skeleton perlmod-utils autoinsert
autorevert saveplace uniquify cl-macs gv u-vm-color vm-autoloads vm-vars
vm-version uim-leim uim warnings uim-helper uim-candidate uim-preedit
uim-key uim-util uim-debug uim-keymap uim-var uim-version preview-latex
proof-site proof-autoloads pg-vars muse-journal muse-book muse-wiki
muse-docbook muse-texinfo texnfo-upd texinfo muse-latex muse-html
muse-xml-common cus-edit cus-start cus-load muse-publish muse-project
muse-protocols info muse-regexps derived muse muse-nested-tags muse-mode
mozc lfe-start identica-mode json 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 byte-opt bytecomp byte-compile cconv
gnus-util mm-util mail-prsvr password-cache url-vars mailcap longlines
parse-time xml go-mode-load ido ess-toolbar ess-mouse mouseme thingatpt
browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode
ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell ess-arc-d
ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs
make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-julia ess-r-d ess-tracebug
ess-roxy hideshow ess-help ess-developer ess-r-args eldoc ess-s-l ess
ess-inf ess-mode ess-noweb-mode ess-utils time-date ess-custom
executable ess-compat ess-site erlang-start rinari jump inflections
findr ruby-compilation which-func imenu pcomplete inf-ruby compile
comint ansi-color ring ruby-mode 50magit emacs-goodies-loaddefs
easy-mmode color-theme easymenu wid-edit cl skk-leim cdargs ude-autoload
bmacs-gnu-emacs bmacs bbdb-autoloads auto-complete-config auto-complete
edmacro kmacro popup tex-site auto-loads agda2 advice help-fns cl-lib
advice-preload skk-setup skk-autoloads tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-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 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 dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)


-- 
mvh
Torbjørn Lindahl
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Mon, 19 May 2014 16:27:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>
Cc: 17529 <at> debbugs.gnu.org
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 12:26:22 -0400
Thanks for the report, but please give us some (any!) details.
Can you give a recipe starting from emacs -Q that shows how to
reproduce the problem?

Can you do:
M-x toggle-debug-no-error
repeat the problem, and send the backtrace?

Buried in the automated part of your report, I see the problem was:

   he-init-string: Wrong type argument: integer-or-marker-p, nil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Mon, 19 May 2014 20:47:02 GMT) Full text and rfc822 format available.

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

From: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 22:37:41 +0200
[Message part 1 (text/plain, inline)]
Hi, I tried but don't know how to.

I did this:

1. open a text file and apply major mode: "ESS[S] modedefined in
'ess.mode.el' , according to C-h m
2. Start R from that process (need to have R installed, a statistics
program)
3. In the inferior R process, try running hippie-expand , that's how I got
the error.

I have been asking in #emacs @freenonde on how to load ess-mode from -Q,
ill tell you when i know



On Mon, May 19, 2014 at 6:26 PM, Glenn Morris <rgm <at> gnu.org> wrote:

>
> Thanks for the report, but please give us some (any!) details.
> Can you give a recipe starting from emacs -Q that shows how to
> reproduce the problem?
>
> Can you do:
> M-x toggle-debug-no-error
> repeat the problem, and send the backtrace?
>
> Buried in the automated part of your report, I see the problem was:
>
>    he-init-string: Wrong type argument: integer-or-marker-p, nil
>



-- 
mvh
Torbjørn Lindahl
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Mon, 19 May 2014 20:48:02 GMT) Full text and rfc822 format available.

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

From: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 22:40:47 +0200
[Message part 1 (text/plain, inline)]
Oh and here is backtrace, the auto-generated email was so long I just
thought it would be in there:

http://fpaste.org/103119/40051358/

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  buffer-substring-no-properties(nil 9745)
  he-init-string(nil 9745)
  try-expand-line(nil)
  apply(try-expand-line nil)
  hippie-expand(nil)
  call-interactively(hippie-expand record nil)
  command-execute(hippie-expand record)
  execute-extended-command(nil "hippie-expand")
  call-interactively(execute-extended-command nil nil)


On Mon, May 19, 2014 at 10:37 PM, Torbjørn Lindahl <
torbjorn.lindahl <at> gmail.com> wrote:

> Hi, I tried but don't know how to.
>
> I did this:
>
> 1. open a text file and apply major mode: "ESS[S] modedefined in
> 'ess.mode.el' , according to C-h m
> 2. Start R from that process (need to have R installed, a statistics
> program)
> 3. In the inferior R process, try running hippie-expand , that's how I got
> the error.
>
> I have been asking in #emacs @freenonde on how to load ess-mode from -Q,
> ill tell you when i know
>
>
>
> On Mon, May 19, 2014 at 6:26 PM, Glenn Morris <rgm <at> gnu.org> wrote:
>
>>
>> Thanks for the report, but please give us some (any!) details.
>> Can you give a recipe starting from emacs -Q that shows how to
>> reproduce the problem?
>>
>> Can you do:
>> M-x toggle-debug-no-error
>> repeat the problem, and send the backtrace?
>>
>> Buried in the automated part of your report, I see the problem was:
>>
>>    he-init-string: Wrong type argument: integer-or-marker-p, nil
>>
>
>
>
> --
> mvh
> Torbjørn Lindahl
>



-- 
mvh
Torbjørn Lindahl
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Mon, 19 May 2014 20:48:03 GMT) Full text and rfc822 format available.

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

From: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 22:43:34 +0200
[Message part 1 (text/plain, inline)]
Also adviced to include the comint-prompt-regexp:

comint-prompt-regexp is a variable defined in `comint.el'.
Its value is "^[]a-zA-Z0-9.[]*\\([>+.] \\)*[+>] "
Local in buffer *R*; global value is "^"



On Mon, May 19, 2014 at 10:40 PM, Torbjørn Lindahl <
torbjorn.lindahl <at> gmail.com> wrote:

> Oh and here is backtrace, the auto-generated email was so long I just
> thought it would be in there:
>
> http://fpaste.org/103119/40051358/
>
> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>   buffer-substring-no-properties(nil 9745)
>   he-init-string(nil 9745)
>   try-expand-line(nil)
>   apply(try-expand-line nil)
>   hippie-expand(nil)
>   call-interactively(hippie-expand record nil)
>   command-execute(hippie-expand record)
>   execute-extended-command(nil "hippie-expand")
>   call-interactively(execute-extended-command nil nil)
>
>
> On Mon, May 19, 2014 at 10:37 PM, Torbjørn Lindahl <
> torbjorn.lindahl <at> gmail.com> wrote:
>
>> Hi, I tried but don't know how to.
>>
>> I did this:
>>
>> 1. open a text file and apply major mode: "ESS[S] modedefined in
>> 'ess.mode.el' , according to C-h m
>>  2. Start R from that process (need to have R installed, a statistics
>> program)
>> 3. In the inferior R process, try running hippie-expand , that's how I
>> got the error.
>>
>> I have been asking in #emacs @freenonde on how to load ess-mode from -Q,
>> ill tell you when i know
>>
>>
>>
>> On Mon, May 19, 2014 at 6:26 PM, Glenn Morris <rgm <at> gnu.org> wrote:
>>
>>>
>>> Thanks for the report, but please give us some (any!) details.
>>> Can you give a recipe starting from emacs -Q that shows how to
>>> reproduce the problem?
>>>
>>> Can you do:
>>> M-x toggle-debug-no-error
>>> repeat the problem, and send the backtrace?
>>>
>>> Buried in the automated part of your report, I see the problem was:
>>>
>>>    he-init-string: Wrong type argument: integer-or-marker-p, nil
>>>
>>
>>
>>
>> --
>> mvh
>> Torbjørn Lindahl
>>
>
>
>
> --
> mvh
> Torbjørn Lindahl
>



-- 
mvh
Torbjørn Lindahl
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Mon, 19 May 2014 21:01:01 GMT) Full text and rfc822 format available.

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

From: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>,
 17529 <at> debbugs.gnu.org
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Mon, 19 May 2014 23:01:10 +0200
Glenn Morris <rgm <at> gnu.org> writes:
> Can you do:
> M-x toggle-debug-no-error
> repeat the problem, and send the backtrace?

More details should come soon from the OP, but we managed to debug this
over IRC so I post the outcome :

First here's the backtrace :

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  buffer-substring-no-properties(nil 9745)
  he-init-string(nil 9745)
  try-expand-line(nil)
  apply(try-expand-line nil)
  hippie-expand(nil)
  call-interactively(hippie-expand record nil)
  command-execute(hippie-expand record)
  execute-extended-command(nil "hippie-expand")
  call-interactively(execute-extended-command nil nil)

This means that (he-line-beg strip-prompt) (that is called within
try-expand-line) returned nil. The reason is that it tries to collect
the 2nd group of a regexp that is not fully under control, namely
comint-prompt-regexp. In ESS, that regexp contains grouping constructs.

To avoid the problem, one solution is to replace "2" by "the last
group". The following patch thus fixes the problem for me... but (1- (/
(length (match-data)) 2)) is a bit cryptic.

--- /usr/local/share/emacs/24.3.91/lisp/hippie-exp.el.gz
+++ #<buffer hippie-exp.el.gz>
@@ -710,7 +710,7 @@
   (save-excursion
     (if (re-search-backward (he-line-search-regexp "" strip-prompt)
 			    (line-beginning-position) t)
-	(match-beginning 2)
+	(match-beginning (1- (/ (length (match-data)) 2)))
       (point))))
 
 (defun he-line-search-regexp (pat strip-prompt)

-- 
Nico.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Thu, 22 May 2014 06:22:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>,
 17529 <at> debbugs.gnu.org
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Thu, 22 May 2014 02:21:14 -0400
I think this would also work:

*** lisp/hippie-exp.el	2014-02-10 01:34:22 +0000
--- lisp/hippie-exp.el	2014-05-22 06:16:33 +0000
***************
*** 715,721 ****
  
  (defun he-line-search-regexp (pat strip-prompt)
    (if strip-prompt
!       (concat "\\(" comint-prompt-regexp "\\|^\\s-*\\)\\("
  	      (regexp-quote pat)
  	      "[^\n]*[^ \t\n]\\)")
        (concat "^\\(\\s-*\\)\\("
--- 715,721 ----
  
  (defun he-line-search-regexp (pat strip-prompt)
    (if strip-prompt
!       (concat "\\(" comint-prompt-regexp "\\|^\\s-*\\)\\(?2:"
  	      (regexp-quote pat)
  	      "[^\n]*[^ \t\n]\\)")
        (concat "^\\(\\s-*\\)\\("





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17529; Package emacs. (Thu, 22 May 2014 14:12:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>, 17529 <at> debbugs.gnu.org,
 Torbjørn Lindahl
 <torbjorn.lindahl <at> gmail.com>
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Thu, 22 May 2014 10:11:38 -0400
> I think this would also work:

Using (match-end 1) instead of (match-beginning 2) is another option.


        Stefan




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Fri, 23 May 2014 18:16:02 GMT) Full text and rfc822 format available.

Notification sent to Torbjørn Lindahl <torbjorn.lindahl <at> gmail.com>:
bug acknowledged by developer. (Fri, 23 May 2014 18:16:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 17529-done <at> debbugs.gnu.org
Subject: Re: bug#17529: 24.3; Error in hippie-expand
Date: Fri, 23 May 2014 14:15:40 -0400
Version: 24.4

Glenn Morris wrote:

> !       (concat "\\(" comint-prompt-regexp "\\|^\\s-*\\)\\(?2:"


I applied this emacs-24, even though this is a long-standing issue,
because it seems like a safe change.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 21 Jun 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 282 days ago.

Previous Next


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