Saving doesn't work anymore.

2005-04-25 Thread Lute Kamstra
Since these changes:

2005-04-25  Kenichi Handa  [EMAIL PROTECTED]

* international/mule-cmds.el (select-safe-coding-system): Don't
check consistency with coding: spec, etc if raw-text or
no-conversion was found to be safe.

2005-04-25  Kenichi Handa  [EMAIL PROTECTED]

* fontset.c (fontset_set): Fix previous change.

saving doesn't work anymore for me.

When I start Emacs with emacs -Q, do M-x toggle-debug-on-error, type
a space in the *scratch* buffer to modify it, and then try to save it
with C-x C-s tmp RET, I get:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  coding-system-type(nil)
  select-safe-coding-system(1 2 nil nil /home/lute/tmp)
  write-region(1 2 /home/lute/tmp nil t ~/tmp)
  basic-save-buffer-2()
  basic-save-buffer-1()
  basic-save-buffer()
  save-buffer(1)
  call-interactively(save-buffer)


Lute.


___
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: ido-mode and customized read-buffer-function

2005-04-25 Thread Roland Winkler
On Sun Apr 24 2005 Kim F. Storm wrote:
 Roland Winkler [EMAIL PROTECTED] writes:
 
  Does this patch give good results ?
 
  Thanks a lot for the quick reply. I think there is a minor bug
  (see below).
 
 You are right.  Thanks.  I installed the change.

I thought I tested all possibilities. But maybe I didn't.
In any case, I now have difficulties with read-file-name-function.
For read-buffer-function, the command ido-everywhere allows me to
switch between my customized value of this variable and
'ido-read-buffer. But the variable read-file-name-function now
always keeps the value 'ido-read-file-name. And when I look at the
code, I can't find anything that could set read-file-name-function
back to nil. (I do not have a customized value for
read-file-name-function.)

Roland


___
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: mouse-sel-mode breaks mouse-1-click-follows-link

2005-04-25 Thread Richard Stallman
When mouse-sel-mode is enabled, one cannot click on (mouse-1) buttons 
in customize buffers or follow most links in *info* buffers, even 
though mouse-1-click-follows-link is t.

Probably some function in mouse-sel.el needs to have the
support for mouse-1-click-follows-link merged into it.
Could someone please work on that?


___
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


Re: Point of wrong window used in read-from-minibuffer?

2005-04-25 Thread Stefan Monnier
 I'm saying that changing it to
 (save-excursion (save-window-excursion (select-window (next-window
 ought to solve the problem too, and the approach is less risky.

 That's true.  But what about:

   (save-window-excursion (forward-char 1) (select-window (next-window)))

 I'd expect this to move the window's cursor by one char.

 No, that is not what it should do.  (select-window (next-window))
 positions point at the position for the other window, and that is the
 value that should remain in effect.

 So I think there is no bug here.

I have a hard time believing you tyhink this behavior is desirable.
So just to double check: you do realize I'm talking about the window's
cursor.  Not the buffer's point.  Whether the buffer's point is changed or
not doesn't bother me.

Another way to look at the problem:
A save-selected-window around a save-window-excursion is redundant because
save-window-excursion saves/restores the selected window.  I.e.

 (save-selected-window (save-window-excursion BODY))
  ==
 (save-window-excursion BODY)

Yet the reverse is not true (with the current code):

 (save-window-excursion (save-selected-window BODY))
  =/=
 (save-window-excursion BODY)

I find this very unintuitive at least, and inconvenient in the above case.


Stefan


___
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug


xassert failure in xdisp.c when using menu on Solaris

2005-04-25 Thread Jan D.
Symptoms:

When compiling with --enable-asserts on Solaris 9, and invoking anything
from the menu, Emacs aborts with an xassert failure.  It shows no ill
effects if I compile without --enable-asserts.


#0  abort () at emacs.c:457
#1  0x080ac467 in set_message_1 (a1=0, a2=144925123, nbytes=9, multibyte_p=0)
at xdisp.c:7902
#2  0x080ab33d in with_echo_area_buffer (w=0x0, which=0, 
fn=0x80ac440 set_message_1, a1=0, a2=144925123, a3=9, a4=0)
at xdisp.c:7309
#3  0x080ac427 in set_message (s=0x0, string=144925123, nbytes=9, 
multibyte_p=0) at xdisp.c:7881
#4  0x080aaa03 in message3_nolog (m=144925123, nbytes=9, multibyte=0)
at xdisp.c:6989
#5  0x0814f30d in echo_now () at keyboard.c:882
#6  0x0814f1db in echo_dash () at keyboard.c:841
#7  0x0814f2c2 in echo_now () at keyboard.c:878
#8  0x08152b4c in read_char (commandflag=1, nmaps=2, maps=0x80472b0, 
prev_event=141485349, used_mouse_menu=0x8047364) at keyboard.c:2707
#9  0x0815bf15 in read_key_sequence (keybuf=0x8047494, bufsize=30, 
prompt=138108945, dont_downcase_last=0, can_return_switch_frame=1, 
fix_current_buffer=1) at keyboard.c:8825
#10 0x081500b8 in command_loop_1 () at keyboard.c:1542
#11 0x081cd075 in internal_condition_case (bfun=0x814fd18 command_loop_1, 
handlers=138214017, hfun=0x814f7bc cmd_error) at eval.c:1385
#12 0x0814fb0c in command_loop_2 () at keyboard.c:1323
#13 0x081ccb0c in internal_catch (tag=138204137, 
func=0x814faec command_loop_2, arg=138108945) at eval.c:1144
#14 0x0814fabe in command_loop () at keyboard.c:1302
#15 0x0814f4ff in recursive_edit_1 () at keyboard.c:995
#16 0x0814f663 in Frecursive_edit () at keyboard.c:1056
#17 0x0814df2c in main (argc=2, argv=0x8047780) at emacs.c:1769
(gdb) up
#1  0x080ac467 in set_message_1 (a1=0, a2=144925123, nbytes=9, multibyte_p=0)
at xdisp.c:7902
7902  xassert (BEG == Z);
(gdb) p *current_buffer
$1 = {
  size = 1073873012, 
  next = 0x83e2610, 
  own_text = {
beg = 0x8b39720 menu-bar, 
gpt = 9, 
z = 9, 
gpt_byte = 9, 
z_byte = 9, 
gap_size = 12, 
modiff = 2, 
save_modiff = 1, 
overlay_modiff = 1, 
beg_unchanged = 0, 
end_unchanged = 0, 
unchanged_modified = 1, 
overlay_unchanged_modified = 1, 
intervals = 0x0, 
markers = 0x8674ae0
  }, 
  text = 0x8505018, 
  pt = 9, 
  pt_byte = 9, 
  begv = 1, 
  begv_byte = 1, 
  zv = 9, 
  zv_byte = 9, 
  base_buffer = 0x0, 
  local_flags = '\0' repeats 34 times, D\b\250\273\b\020\311\b0oV\b \324, 
  modtime = 0, 
  auto_save_modified = 0, 
  display_error_modiff = 0, 
  auto_save_failure_time = -1, 
  last_window_start = 1, 
  clip_changed = 0, 
  newline_cache = 0x0, 
  width_run_cache = 0x0, 
  prevent_redisplay_optimizations_p = 1, 
  overlays_before = 0x0, 
  overlays_after = 0x0, 
  overlay_center = 1, 
  name = 138076435, 
  filename = 138108945, 
  directory = 142287283, 
  backed_up = 138108945, 
  save_length = 0, 
  auto_save_file_name = 138108945, 
  read_only = 138108945, 
  mark = 138220306, 
  local_var_alist = 139160269, 
  major_mode = 138109185, 
  mode_name = 13839, 
  mode_line_format = 138934637, 
  undo_list = 138108993, 
  header_line_format = 138108945, 
  keymap = 138108945, 
  abbrev_table = 138292756, 
  syntax_table = 138174484, 
  category_table = 138176532, 
  case_fold_search = 138108993, 
  tab_width = 64, 
  fill_column = 560, 
  left_margin = 0, 
  auto_fill_function = 138108945, 
  buffer_file_type = 138108945, 
  downcase_table = 138182676, 
  upcase_table = 138186772, 
  case_canon_table = 141187092, 
  case_eqv_table = 141230100, 
  truncate_lines = 138108945, 
  ctl_arrow = 138108993, 
  direction_reversed = 138108945, 
  selective_display = 138108945, 
  selective_display_ellipses = 138108993, 
  minor_modes = 138108945, 
  overwrite_mode = 138108945, 
  abbrev_mode = 138108945, 
  display_table = 138108945, 
  mark_active = 138108945, 
  enable_multibyte_characters = 138108945, 
  buffer_file_coding_system = 138414289, 
  file_format = 138108945, 
  auto_save_file_format = 138108993, 
  cache_long_line_scans = 138108945, 
  width_table = 138108945, 
  pt_marker = 138108945, 
  begv_marker = 138108945, 
  zv_marker = 138108945, 
  point_before_scroll = 138108945, 
  file_truename = 138108945, 
  invisibility_spec = 138108993, 
  last_selected_window = 138108945, 
  display_count = 0, 
  left_margin_cols = 0, 
  right_margin_cols = 0, 
  left_fringe_width = 138108945, 
  right_fringe_width = 138108945, 
  fringes_outside_margins = 138108945, 
  scroll_bar_width = 138108945, 
  vertical_scroll_bar_type = 138108993, 
  indicate_empty_lines = 138108945, 
  indicate_buffer_boundaries = 138108945, 
  display_time = 138108945, 
  scroll_up_aggressively = 138108945, 
  scroll_down_aggressively = 138108945, 
  cursor_type = 138108993, 
  extra_line_spacing = 138108945
}
(gdb) p *current_buffer-text
$2 = {
  beg = 0x8b39720 menu-bar, 
  gpt = 9, 
  z = 9, 
  gpt_byte = 9, 
  z_byte = 9, 
  gap_size = 12, 
  modiff