1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 00:30:37 -08:00
Commit graph

108502 commits

Author SHA1 Message Date
Paul Eggert
2d3800d2cf * configure.ac (_FORTIFY_SOURCE): Define only when optimizing.
This ports to glibc 2.15 or later, when configured with
--enable-gcc-warnings.  See Eric Blake in
<http://lists.gnu.org/archive/html/bug-grep/2012-09/msg00000.html>.
2012-09-01 11:54:38 -07:00
Martin Rudalics
78dd6ab198 Rewrite switch-to-prev-/next-buffer and quit-window; add display-buffer-below-selected.
* window.el (switch-to-prev-buffer): Handle additional values of
BURY-OR-KILL argument.  Don't switch in minibuffer window.
(switch-to-next-buffer): Don't switch in minibuffer window.
(quit-restore-window): New function based on quit-window.
Handle additional values of former KILL argument.
(quit-window): Call quit-restore-window with appropriate
interpretation of KILL argument.
(display-buffer-below-selected): New buffer display action
function.
2012-09-01 18:47:09 +02:00
Eli Zaretskii
7e510e2844 Further fix for bug #11860 with Arabic display on Windows.
src/w32uniscribe.c (uniscribe_shape): Handle correctly the case of
 more than one grapheme cluster passed to the shaper: compute the
 offset adjustment values separately for each cluster.
2012-09-01 16:54:27 +03:00
Eli Zaretskii
f18cbb28c2 Remove conflict markers and fix entries for 2012-09-01T06:38:52Z!dancol@dancol.org. 2012-09-01 15:23:50 +03:00
Glenn Morris
f1220388bc Auto-commit of loaddefs files. 2012-09-01 07:17:44 -04:00
Glenn Morris
25eac50084 Auto-commit of loaddefs files. 2012-09-01 06:20:47 -04:00
Glenn Morris
42dcba546d Auto-commit of generated files. 2012-09-01 06:17:31 -04:00
Eli Zaretskii
4dfbd23866 Fix last changes related to w32 and Cygwin.
src/image.c: Restore mistakenly removed inclusion of w32.h.  Without
 it, GCC doesn't see prototypes of w32_delayed_load, and complains
 about implicit conversions from integer to pointer.
2012-09-01 12:29:17 +03:00
Daniel Colascione
86571ae075 Prevent crash if w32 used before it's initialized 2012-09-01 00:22:10 -08:00
Daniel Colascione
0a850e9a4e Merge from cygw32 branch 2012-09-01 00:01:36 -08:00
Daniel Colascione
17a2cbbd76 Refactor window-system configuration
This change streamlines the window system selection code in
configure.in and moves many common function declarations from
window-specific headers to frame.h.  It introduces a new TERM_HEADER
macro in config.h: we set this macro to the right header to use for
the window system for which we're compiling Emacs and have source
files include it indirectly.  This way, we don't have to teach every
file about every window system.
2012-08-31 22:38:52 -08:00
Stefan Monnier
3d10e1343d * lisp/minibuffer.el (completion-at-point-functions): Complete docstring.
Fixes: debbugs:12254
2012-09-01 00:28:24 -04:00
Paul Eggert
3363421789 * sysdep.c (seed_random): Fix typo: HAV_LRAND48 -> HAVE_LRAND48.
This fixes a bug on old systems that do not have the 'random' function.
2012-08-31 18:13:50 -07:00
Paul Eggert
0e23ef9dde Better seed support for (random).
* doc/lispref/numbers.texi (Random Numbers): Document new behavior of
the calls (random) and (random STRING).
* etc/NEWS: Document new behavior of (random), (random "string").
* lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
* lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
* lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
* lisp/play/tetris.el, lisp/play/zone.el:
* lisp/calc/calc-comb.el (math-init-random-base):
* lisp/play/blackbox.el (bb-init-board):
* lisp/play/life.el (life):
* lisp/server.el (server-use-tcp):
* lisp/type-break.el (type-break):
Remove unnecessary call to (random t).
* lisp/net/sasl.el (sasl-unique-id-function):
Change (random t) to (random), now that the latter is more random.
* lisp/play/life.el (life-initialized): Remove no-longer-needed var.
* lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
* lisp/gnus/message.el (message-canlock-generate, message-unique-id):
Change (random t) to (random), now that the latter is more random.
* lisp/org/org-id.el (org-id-uuid):
Change (random t) to (random), now that the latter is more random.
* src/emacs.c (main): Call init_random.
* src/fns.c (Frandom): Set the seed from a string argument, if given.
Remove long-obsolete Gentzel cruft.
* src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
(init_random): New function.
2012-08-31 18:04:26 -07:00
Glenn Morris
723088480d Fix right and left key remapping issue (bug#12317)
* lisp/emulation/cua-rect.el (cua--init-rectangles):
* lisp/textmodes/picture.el (picture-mode-map):
* lisp/play/blackbox.el (blackbox-mode-map):
Remap right-char and left-char like forward-char and backward-char.
2012-08-31 13:38:50 -04:00
Andreas Schwab
5bf647499a Fixes: debbugs:12306
* etags.c (consider_token): Always zero-terminate token buffer.
2012-08-31 18:53:48 +02:00
Martin Rudalics
862382df3d Consider frame's buffer predicate in switch-to-prev-/next-buffer.
* window.el (switch-to-prev-buffer, switch-to-next-buffer):
Consider frame's buffer predicate when choosing the buffer.
(Bug#12081)
2012-08-31 18:51:49 +02:00
Michael Albinus
7b2fbe3b46 * eshell/esh-ext.el: Explain, why we suppress the check in
`eshell-external-command'.
2012-08-31 13:11:06 +02:00
Dmitry Antipov
c650a5dec6 Remove mark_ttys function and fix tty_display_info initialization.
* lisp.h (mark_ttys): Remove prototype.
* alloc.c (Fgarbage_collect): Remove redundant (and the only) call
to mark_ttys because all possible values of 'top_frame' slot are
the frames which are reachable from Vframe_list.
* term.c (mark_ttys): Remove.
(init_tty): Safely initialize 'top_frame' slot with Qnil.
2012-08-31 14:53:19 +04:00
Dave Abrahams
c20643e210 [Gnus] Miscellaneous fixes by Dave Abrahams 2012-08-31 04:39:30 +00:00
Dmitry Antipov
4e0f64791b Change struct frame bitfields from unsigned char to unsigned.
* frame.h (struct frame): Change type of 'display_preempted',
'visible', 'iconified', 'has_minibuffer', 'wants_modeline',
'auto_raise', 'auto_lower', 'no_split', 'explicit_name',
'window_sizes_changed', 'mouse_moved' and 'pointer_invisible'
bitfields from unsigned char to unsigned.
2012-08-31 08:40:52 +04:00
Dmitry Antipov
8b96a52c54 Remove unused member of struct x_output and struct w32_output.
* xterm.h (struct x_output): Remove unused field 'needs_exposure'.
* w32term.h (struct w32_output): Likewise.
2012-08-31 08:14:59 +04:00
Stefan Monnier
e1991423c6 * lisp/gnus/gnus-notifications.el (gnus-notifications-action): Avoid CL-ism. 2012-08-30 20:46:01 -04:00
Julien Danjou
ba7ac1f6e5 gnus-notifications.el: Add defcustom for timeout and actions support 2012-08-30 22:14:27 +00:00
Richard M. Stallman
b118352941 Delete z binding in special-mode-map. 2012-08-30 13:09:51 -04:00
Richard M. Stallman
262a66e138 Delete `z' in special-mode-map. 2012-08-30 13:09:11 -04:00
Jan Djärv
b4444c8ad0 * gtkutil.c (x_wm_set_size_hint): Use 1 col for base_width so it
does not become zero.

Fixes: debbugs:12234
2012-08-30 18:07:44 +02:00
Paul Eggert
b98521dbff * dispnew.c (update_frame_1): Pacify gcc -Wstrict-overflow
for GCC 4.7.1 x86-64.
2012-08-30 08:07:00 -07:00
Kenichi Handa
8b0c72d319 qp.el (quoted-printable-decode-region): Decode multiple bytes at once. 2012-08-30 21:16:38 +09:00
Kenichi Handa
31e7d6e090 merge trunk 2012-08-30 21:07:42 +09:00
Leo Liu
3aca1291d0 Extract "^[wW]arning" into a new var flymake-warning-re 2012-08-30 19:41:40 +08:00
Andreas Schwab
f17e1d00e0 * progmodes/compile.el (compilation-always-kill): Doc fix. 2012-08-30 10:22:24 +02:00
Chong Yidong
247778328b Improve obsolescence message of display-buffer-reuse-frames.
* lisp/window.el (display-buffer-reuse-frames): Make the obsolescence
message more informative.
2012-08-30 11:45:51 +08:00
Glenn Morris
69ba1f0420 * lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297) 2012-08-29 21:44:11 -04:00
Glenn Morris
b66833534f * holidays.el (holiday-christian-holidays): Rename an entry (bug#12289)
(Not worth a :version bump.)
2012-08-29 21:18:41 -04:00
Glenn Morris
31d024384c init_lread fix for bug#12302
* src/lread.c (init_lread): For out-of-tree builds, only add the
source directory's site-lisp dir to the load-path if it exists,
consistent with in-tree builds.
2012-08-29 20:47:33 -04:00
Julien Danjou
966560123e Add gnus-notifications.el 2012-08-29 22:04:05 +00:00
Stefan Monnier
64f8c4bd61 * lisp/progmodes/sh-script.el (sh-font-lock-paren): Don't burp at BOB.
Fixes: debbugs:12222
2012-08-29 14:33:35 -04:00
Martin Blais
f0019ede63 * lisp/progmodes/compile.el (compilation-always-kill): New var.
(compilation-start): Use it.
2012-08-29 14:15:12 -04:00
Stefan Monnier
af070a1c6a * lisp/simple.el (read-only-mode): Move from lisp/files.el for bootstrapping.
* files.el (read-only-mode): Move to simple.el.
2012-08-29 13:36:49 -04:00
Stefan Monnier
35e62fc984 * lisp/files.el (read-only-mode): New minor mode.
(toggle-read-only): Use it and mark obsolete.
(find-file--read-only):
* lisp/vc/vc.el (vc-next-action, vc-checkout):
* lisp/vc/vc-cvs.el (vc-cvs-checkout):
* lisp/obsolete/vc-mcvs.el (vc-mcvs-update):
* lisp/ffap.el (ffap--toggle-read-only): Update callers.
2012-08-29 11:11:51 -04:00
Michael Albinus
c2c43c2382 * eshell/esh-ext.el (eshell-external-command): Do not examine
remote shell scripts.  See
<https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1035790>.

* net/tramp-sh.el (tramp-remote-path): Add "/sbin" and
"/usr/local/sbin".
2012-08-29 14:49:44 +02:00
Stefan Monnier
d5e2bcd351 * cl-lib.el (buffer-string): Simplify last change.
Fixes: debbugs:12293
2012-08-28 16:14:21 -04:00
Stefan Monnier
9fba804b9e * lisp/emacs-lisp/cl-lib.el (buffer-string): Fix setter macro.
Fixes: debbugs:12293
2012-08-28 15:35:35 -04:00
Glenn Morris
a3f90bea8e * admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree. 2012-08-28 15:26:41 -04:00
Andreas Schwab
01e0f0f5d7 * admin/charsets/mule-charsets.el (header): Fix typo.
* etc/charsets/MULE-ethiopic.map: Fix typo in comment.
* etc/charsets/MULE-ipa.map: Likewise.
* etc/charsets/MULE-is13194.map: Likewise.
* etc/charsets/MULE-lviscii.map: Likewise.
* etc/charsets/MULE-sisheng.map: Likewise.
* etc/charsets/MULE-tibetan.map: Likewise.
* etc/charsets/MULE-uviscii.map: Likewise.
2012-08-28 18:08:50 +02:00
Jan Djärv
7f8941d8b2 Improve NS dialogs. Add close button, remove ugly casts.
* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
button_values to NULL. Call setStykeMask so dialogs get a close button.
(windowShouldClose:): Set window_closed.
(dealloc): New member, free button_values.
(process_dialog:): Make member function. Remove window argument,
replace window with self. Count buttons and allocate and store values
in button_values.
(addButton:value:row:): value is int with the name tag.  Call setTag
with tag. Remove return self, declare return value as void.
(addString:row:): Remove return self, declare return value as void.
(addSplit): Remove return self, declare return value as void.
(clicked:): Remove return self, declare return value as void.
Set dialog_return to button_values[seltag]. Code formatting change.
(initFromContents:isQuestion:): Adjust call to process_dialog.
Code formatting change.
(timeout_handler:): Set timer_fired to YES.
(runDialogAt:): Set timer_fired to NO.
Handle click on close button as quit.

* nsterm.h (EmacsDialogPanel): Make timer_fired BOOL.
Add window_closed and button_values.  Add void as return value for
add(Button|String|Split).  addButton takes int instead of Lisp_Object.
Add process_dialog as new member.
2012-08-28 18:05:17 +02:00
Glenn Morris
eada086196 Merge from emacs-24; up to 2012-05-04T19:17:01Z!monnier@iro.umontreal.ca 2012-08-28 09:01:59 -07:00
Martin Rudalics
37b9743e79 In Fset_window_configuration install revison of reverted fix.
* window.c (Fset_window_configuration): Install revision of reverted
fix.
2012-08-28 16:09:43 +02:00
Martin Rudalics
457294dd11 Remove handling of auto-buffer-name window parameter.
* window.c (Fset_window_configuration): Remove handling of
auto-buffer-name window parameter.
2012-08-28 15:51:09 +02:00