* bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer
@ 2009-07-11 15:34 Taiki SUGAWARA
2011-09-17 6:45 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Taiki SUGAWARA @ 2009-07-11 15:34 UTC (permalink / raw)
To: emacs-pretest-bug
I wrote code for search 8-bit byte on unibyte buffer like a
followings. but emacs says `search failed'. It's a bug?
(with-temp-buffer
(set-buffer-multibyte nil)
(insert (make-string 1 ?\xff))
(goto-char (point-min))
(search-forward (make-string 1 ?\xff)))
In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1)
of 2009-07-08 on pastel
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure '--prefix=/opt/emacs23''
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: ja_JP.UTF-8
value of $XMODIFIERS: @im=uim
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
tooltip-mode: t
tool-bar-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
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-e q <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> M-x e m a c s C-g M-h v C-g
C-/ <f1> v s m t p <tab> C-g M-x a p r o SPC [ s <backspace>
<backspace> <return> s m t p <return> M-x s e n d C-g
M-x a p r o SPC <return> b u g s <return> M-x a M-p
RET b u g <return> C-x o C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-v C-v C-s s e n d RET C-x o M-x s
e n d SPC e m a SPC C-a C-k s e n d - <tab> <tab> C-a
C-k C-g C-x o C-s s e n d C-s C-s C-a C-x o M-x e m
a c s <tab> <tab> C-g M-x r e p o r SPC e m a SPC SPC
<return> c a n ' t SPC s e a r c h SPC b y t e SPC
o n SPC u n i b y t e SPC b u f f e r RET C-p C-n C-x
1 <next> <up> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <next> <next>
<prior> <prior> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> M-x M-p C-g C-n <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <down> <down>
<down> <down> <down> <down> C-x k RET C-n C-n C-n C-x
C-v RET C-n C-n C-n C-n C-e C-x C-e q M-m <down-mouse-1>
<mouse-1> M-x r e p o <tab> r <tab> <return>
Recent messages:
Mark saved where search started
Quit
Making completion list...
Quit
call-interactively: End of buffer
Quit
Auto-saving...
Entering debugger...
Back to top level.
Making completion list...
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer
2009-07-11 15:34 bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer Taiki SUGAWARA
@ 2011-09-17 6:45 ` Lars Magne Ingebrigtsen
2011-09-17 7:21 ` Andreas Schwab
0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-17 6:45 UTC (permalink / raw)
To: Taiki SUGAWARA; +Cc: 3822
Taiki SUGAWARA <buzz.taiki@gmail.com> writes:
> I wrote code for search 8-bit byte on unibyte buffer like a
> followings. but emacs says `search failed'. It's a bug?
>
> (with-temp-buffer
> (set-buffer-multibyte nil)
> (insert (make-string 1 ?\xff))
> (goto-char (point-min))
> (search-forward (make-string 1 ?\xff)))
It seems somewhat odd, at least. However, it probably isn't a bug. The
`insert' will insert the 0xff byte into the buffer, but
`(make-string 1 ?\xff)' will create a multibyte string, which will, of
course, not be found in the buffer.
I think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer
2011-09-17 6:45 ` Lars Magne Ingebrigtsen
@ 2011-09-17 7:21 ` Andreas Schwab
2011-09-17 7:24 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2011-09-17 7:21 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: 3822
This is the same as #9458 which is already fixed.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer
2011-09-17 7:21 ` Andreas Schwab
@ 2011-09-17 7:24 ` Lars Magne Ingebrigtsen
2011-09-18 15:21 ` Chong Yidong
0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-17 7:24 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 3822
Andreas Schwab <schwab@linux-m68k.org> writes:
> This is the same as #9458 which is already fixed.
But the fix isn't on the trunk yet, I guess?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer
2011-09-17 7:24 ` Lars Magne Ingebrigtsen
@ 2011-09-18 15:21 ` Chong Yidong
0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2011-09-18 15:21 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: Andreas Schwab, 3822
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> This is the same as #9458 which is already fixed.
>
> But the fix isn't on the trunk yet, I guess?
I just merged it in.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-18 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 15:34 bug#3822: 23.1.50; can't search 8-bit byte on unibyte buffer Taiki SUGAWARA
2011-09-17 6:45 ` Lars Magne Ingebrigtsen
2011-09-17 7:21 ` Andreas Schwab
2011-09-17 7:24 ` Lars Magne Ingebrigtsen
2011-09-18 15:21 ` Chong Yidong
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.