1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00
Commit Graph

116206 Commits

Author SHA1 Message Date
Glenn Morris
64a6f1f30e Bump version number to 24.3.93 2014-08-14 15:56:31 -04:00
Leo Liu
e131e4ffae * speedbar.el (speedbar-generic-list-tag-p): Allow special
elements from imenu.
2014-08-13 11:21:43 +08:00
Ken Brown
2b0cb8b177 * src/gmalloc.c (_malloc_mutex, _aligned_blocks_mutex) [CYGWIN]: Use ERRORCHECK mutexes. (Bug#18222) 2014-08-11 11:25:08 -04:00
Glenn Morris
727f37e6cc * lisp/subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual. 2014-08-10 18:13:38 -07:00
Glenn Morris
f314e84fce Revert 2013-01-31 change that decides coding system before backing up
It causes a more serious problem than the one it solves.
This closes bug#18141, and reopens bug#13522.

* lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.

* src/fileio.c: Revert 2013-01-31 change.
(choose_write_coding_system): No longer callable from Lisp.
Move last piece back here from Fwrite_region.
(Fwrite_region, syms_of_fileio): Update for above changes.

* test/automated/data/files-bug18141.el.gz: New file.
* test/automated/files.el (files-test-bug-18141-file):
New variable and test.
2014-08-10 17:38:19 -07:00
Paul Eggert
db2f09ab1b Simplify previous patch.
Fixes: debbugs:18232
2014-08-10 14:06:07 -07:00
Paul Eggert
f22bc725a1 Don't prevent random file systems from being unmounted.
This fix relies on having the 'fchdir' function, and on having
"." be searchable (or at least readable, on platforms lacking O_SEARCH),
but that's good enough to handle the vast majority of cases and the
remaining folks can just live with the annoyance of file systems
that occasionally can't be unmounted.
* configure.ac (fchdir): New function to check for.
* lib/save-cwd.c: Copy from gnulib, except omit the part that
allocates memory, since that can cause problems in Emacs.
* lib/save-cwd.h: Copy from gnulib.

Fixes: debbugs:18232
2014-08-10 13:40:57 -07:00
Martin Rudalics
d5f2feb581 Make doc-string of window-total-size more self-contained.
* window.el (window-total-size): Make doc-string more
self-contained.
2014-08-10 12:41:28 +02:00
Martin Rudalics
02e0530477 In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).
* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).
2014-08-09 18:50:13 +02:00
Martin Rudalics
c70e7e185e Second attempt to fix some doc-strings in window.c.
* window.c (Fwindow_new_total, Fwindow_new_normal)
(Fwindow_new_pixel, Fset_window_new_pixel)
(Fset_window_new_total, Fset_window_new_normal): Second attempt
to fix the doc-strings of these functions.  See:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-08/msg00287.html
2014-08-09 13:12:45 +02:00
Stefan Monnier
5a88c153fc * lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event.

Fixes: debbugs:18212
2014-08-08 12:56:50 -04:00
Eli Zaretskii
1f3e13c15f lisp/info.el (info): Doc fix. 2014-08-08 16:53:55 +03:00
Martin Rudalics
8faa5ee738 Fix some doc-strings in window.c (Bug#18112) (Bug#18194).
* window.c (Fwindow_valid_p): Fix doc-string (Bug#18194).
(Fwindow_new_total, Fwindow_normal_size, Fwindow_new_normal)
(Fwindow_new_pixel, Fset_window_new_pixel)
(Fset_window_new_total, Fset_window_new_normal)
(Fwindow_resize_apply): Fix doc-strings (see Bug#18112).
2014-08-08 11:52:59 +02:00
Bastien Guerry
f8ddedff72 Fix typos in TUTORIAL.fr 2014-08-08 07:20:52 +02:00
Stefan Monnier
87eb576e30 * lisp/info.el (Info-mode-map): Override a global down-mouse-2 binding.
Fixes: debbugs:18212
2014-08-07 14:35:54 -04:00
Eli Zaretskii
8db811eff1 Fix bug #18162 with assertion violations due to empty face cache.
src/fontset.c (Finternal_char_font): Recompute basic faces if the
 frame's face cache was cleared.
2014-08-07 18:18:10 +03:00
Glenn Morris
6df16fba2a * test/automated/Makefile.in (check-tar): Remove, no longer needed.
No need to merge this to trunk.
2014-08-06 17:08:57 -07:00
Eli Zaretskii
518edaef88 src/coding.c: Fix typos in comments and doc strings. 2014-08-06 20:37:22 +03:00
Eli Zaretskii
5818408f50 Fix bug #18195 with inaccurate results from window-screen-lines.
lisp/simple.el (default-line-height): A floating-point value of
 line-spacing means a fraction of the default frame font's height,
 not of the font currently used by the 'default' face.  Truncate
 the pixel value, like the display engine does.
 (window-screen-lines): Use window-inside-pixel-edges for
 determining the window height in pixels.
2014-08-05 16:34:06 +03:00
Dmitry Antipov
1d58ab89ca Fix bug with uninitialized undo list of an indirect buffer (Bug#18180).
* buffer.c (Fmake_indirect_buffer): Initialize undo list with the
base buffer's undo list.
2014-08-05 10:04:38 +04:00
Dmitry Antipov
a270fa7cf8 Fix bug with an attempt to select uninitialized frame (Bug#18161).
* xfns.c (Fx_create_frame): Move call to change_frame_size to
a section where Lisp evaluation is disabled.  This way a pointer
to uninitialized frame is not accessible from Lisp, which becomes
critical if following call to x_figure_window_size throws an error.
2014-08-03 11:19:43 +04:00
Glenn Morris
f91d04c6fe * test/automated/Makefile.in (check-tar): Add as alias for check.
Do not merge this to trunk.
2014-08-02 23:52:00 -04:00
Paul Eggert
a98a91ac46 Fix bug with clang + directory_files_internal + GC.
* src/dired.c (directory_files_internal): Use a volatile variable
to prevent the compiler from optimizing away all copies of a local.
I wonder how many other GC-related bugs like this lurk elsewhere?

Fixes: debbugs:16986
2014-08-02 15:58:09 -07:00
Paul Eggert
7f0ff25b7a Avoid 100% CPU utilization on ssh session exit.
* src/xterm.h (struct x_display_info): New member 'connection'.
* src/xterm.c (x_term_init, x_delete_terminal): Set and use it,
so that x_delete_terminal has a file descriptor to pass to
delete_keyboard_wait_descriptor.

Fixes: debbugs:17691
2014-08-02 14:31:18 -07:00
Paul Eggert
69402c0269 Spelling+grammar fix. 2014-08-01 08:44:42 -07:00
Glenn Morris
eef5843c34 Auto-commit of loaddefs files. 2014-08-01 07:18:48 -04:00
Eli Zaretskii
a1767506c0 Fix display of R2L lines when the last character fits only partially.
See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html
 for the details.
 src/xdisp.c (extend_face_to_end_of_line): If the last glyph of an
 R2L row is visible only partially, give the row a negative x
 offset.
 (display_line): Fix the calculation of the glyph whose pixel width
 is used to decide whether the last produced glyph fits on the
 line.  When the last glyph fits only partially, give the row a
 negative x offset.
2014-08-01 12:39:04 +03:00
Eli Zaretskii
f0f377774b Fix bug #18146 with bogus key rebindings in TUTORIAL.he.
lisp/tutorial.el (tutorial--display-changes): Accept punctuation
 characters before the key binding.  (Bug#18146)
2014-07-29 16:41:50 +03:00
Eli Zaretskii
64ae6e0100 Fix hscroll of R2L lines that begin with a TAB or another wide glyph.
src/xdisp.c (append_stretch_glyph): In a R2L glyph row, decrease the
 pixel width of the first glyph that is hscrolled from display.
 (display_line): In R2L glyph rows, don't give a negative offset to
 row->x when the first glyph begins before first_visible_x.
2014-07-29 11:19:29 +03:00
Andreas Schwab
aac90c4a9c Fixes: debbugs:18140
* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and
kbd_macro_end together with kbd_macro_buffer.
2014-07-29 10:08:04 +02:00
Eli Zaretskii
17ee955294 Fix another part of bug #18035 with redisplay of line-prefix and linum-mode.
src/xdisp.c (display_line): If called with iterator set up to write
 to a marginal area, delay the call to handle_line_prefix until we
 switch back to the text area.
2014-07-28 16:09:02 +03:00
Tassilo Horn
1c6c2e3c70 Merge commit 2014-07-28T09:07:56Z!tsdh@gnu.org from trunk. 2014-07-28 11:32:25 +02:00
Eli Zaretskii
6ea6889ab9 src/ChangeLog: Fix a typo. 2014-07-28 10:18:46 +03:00
Eli Zaretskii
29c3b71635 Fix GDB xwindow command.
src/.gdbinit (xwindow): The members total_cols, total_lines,
 left_col, and top_line are C integers (and has been so for the
 last 1.5 years).
2014-07-28 10:10:17 +03:00
Eli Zaretskii
bc7f1625f6 Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.
lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
 that of the selected frame.
2014-07-27 16:01:07 +03:00
Eli Zaretskii
5c2b88050d src/window.c (window_resize_check, window_resize_apply): Fix typos in comments. 2014-07-27 15:04:29 +03:00
Andreas Schwab
fb2e15326d Fixes: debbugs:18117
* textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.
2014-07-27 13:38:59 +02:00
Eli Zaretskii
fa080fa705 src/dispnew.c (allocate_matrices_for_frame_redisplay): Fix typo in a comment. 2014-07-27 09:32:56 +03:00
Fabián Ezequiel Gallina
85bc77b270 * lisp/progmodes/python.el (inferior-python-mode): Doc fix. 2014-07-26 22:36:48 -03:00
Eli Zaretskii
c734f28e43 Fix bug #18113 with ambiguous wording in etc/DEBUG.
etc/DEBUG: Improve wording.
2014-07-26 16:40:53 +03:00
Stephen Berman
e72e661276 * calendar/todo-mode.el (todo-edit-item--next-key): If next key is
not a character, ignore it instead of raising an error.
2014-07-25 23:53:52 +02:00
Stephen Berman
6dd006a86d Fix code and doc involving marked items.
* todo-mode.texi (Marked Items): Correct omission of item deletion
from commands applying to both todo and done items.

* calendar/todo-mode.el: Fix handling of marked items and make
minor code improvements.
(todo-edit-item): If there are marked items, ensure user can only
invoke editing commands that work with marked items.
(todo-edit-item--text): When there are marked items, make it a
noop if invoked with point not on an item; otherwise, ensure it
applies only to item at point.
(todo-item-undone): If there are marked not-done items, return
point to its original position before signaling user error.
(todo--user-error-if-marked-done-item): New function.
(todo-edit-item--header, todo-edit-item--diary-inclusion)
(todo-item-done): Use it.
2014-07-25 18:01:05 +02:00
Glenn Morris
c509a535a8 vc-hooks.el: Fix doc typo in previous 2014-07-25 06:05:10 -04:00
Glenn Morris
59bb37859d More toggle-read-only doc tweaks
* lisp/files.el (toggle-read-only): Re-add basic doc-string.

* lisp/vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.
2014-07-25 05:24:53 -04:00
Glenn Morris
25aa0da588 prolog.el: Fix for missing `switch-to-prolog'
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00228.html

* lisp/progmodes/prolog.el (prolog-mode-keybindings-edit):
Replace missing `switch-to-prolog' with `run-prolog'.
(switch-to-prolog): Define as (obsolete) alias, as in 23.4.
2014-07-25 04:24:00 -04:00
Stephen Berman
37a21453db * calendar/todo-mode.el (todo-set-top-priorities): Fix overwriting
of file-wide setting when changing category-wide setting.
2014-07-22 23:32:04 +02:00
Paul Eggert
ad4c5263f5 Spelling fixes. 2014-07-21 07:41:19 -07:00
Glenn Morris
5da5370cc7 NEWS copyedit 2014-07-21 02:18:01 -04:00
Glenn Morris
ef3b719483 NEWS tweaks 2014-07-21 01:58:27 -04:00
Glenn Morris
f6c951e5d2 Small fixes re toggle-read-only, mainly doc
* progmodes/hideif.el (hide-ifdef-mode-submap): Also substitute read-only-mode.

* bindings.el (mode-line-toggle-read-only):
* bs.el (bs-toggle-readonly):
* buff-menu.el (Buffer-menu-toggle-read-only):
* dired.el (dired-toggle-read-only):
* files.el (view-read-only, find-file-read-only)
(find-file-read-only-other-window)
(find-file-read-only-other-frame):
* progmodes/hideif.el (hide-ifdef-toggle-outside-read-only):
Doc fixes re toggle-read-only.

* view.el: Comment updates.
2014-07-21 01:38:17 -04:00