GNU bug report logs - #9511
Moving the point to / with C-M-f and C-M-b when reading a filename from minibuffer

Previous Next

Package: emacs;

Reported by: Masatake YAMATO <yamato <at> redhat.com>

Date: Thu, 15 Sep 2011 08:44:02 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Masatake YAMATO <yamato <at> redhat.com>
Cc: 9511 <at> debbugs.gnu.org
Subject: Re: bug#9511: Moving the point to / with C-M-f and C-M-b when reading
	a filename from minibuffer
Date: Thu, 15 Sep 2011 09:03:30 -0400
> +		      (when (and syntax
> +				 (eq (car syntax)
> +				     punctuation))

If syntax is nil, (car syntax) is nil, so the above is equivalent to

	      (when (eq (car syntax) punctuation)

> +			(let* ((cons? (consp cc))
> +			       (begin (if cons? (car cc) cc))
> +			       (end (if cons? (cdr cc) begin))
> +			       (c begin))
> +			  (while (<= c end)
> +			    (modify-syntax-entry c "_" table)
> +			    (setq c (1+ c))))))

Aka (modify-syntax-entry cc "_" table), since it accepts the same "cons
to represent a range" convention ;-)


        Stefan




This bug report was last modified 13 years and 93 days ago.

Previous Next


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