1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-15 17:00:26 +00:00
Commit Graph

106280 Commits

Author SHA1 Message Date
Glenn Morris
a4c8dd51c1 Try to speed up pcomplete's calling of rpm -qa
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00174.html

* lisp/pcmpl-rpm.el (pcmpl-rpm): New group.
(pcmpl-rpm-query-options): New option.
(pcmpl-rpm-packages): No need to inline it.  Use pcmpl-rpm-query-options.
2012-06-22 00:01:32 -07:00
Eli Zaretskii
d251c37c72 Enlarge NSTATICS to 0x650.
src/alloc.c (NSTATICS): Enlarge to 0x650.  Otherwise, Emacs compiled
 with -DENABLE_CHECKING -DXASSERTS -DGLYPH_DEBUG=1 -DBYTE_CODE_METER
 aborts in staticpro during startup.  (Without -DBYTE_CODE_METER,
 staticidx goes up to 1597 out of 1600 = 0x640.)
2012-06-22 09:51:06 +03:00
Glenn Morris
89b5595ade * calendar.el (calendar-in-read-only-buffer): Avoid some needless mode changes. 2012-06-21 21:50:35 -04:00
Chong Yidong
a3f10d3e4b * url.el (url-retrieve-internal): Fix last change.
Fixes: debbugs:11627
2012-06-21 17:21:28 +08:00
Glenn Morris
ac1a0ce1c6 Merge from emacs-24; up to 2012-04-26T03:04:36Z!cyd@gnu.org 2012-06-21 00:34:27 -07:00
Chong Yidong
6b67c0d4c9 * desktop.el (desktop-read): Use user-emacs-directory if desktop-path is nil. 2012-06-21 15:25:56 +08:00
Chong Yidong
e76f0800d2 Fixes to desktop reading logic.
* desktop.el (desktop-read): Don't prompt if daemon.
(desktop-path): Remove . from the default value.
2012-06-21 15:15:42 +08:00
Paul Eggert
f10deafb12 * fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
Otherwise, the umask might be mistakenly 0 while handling input signals.
2012-06-20 14:20:06 -07:00
Chong Yidong
297a8f1ddb term.el (term-send-raw-meta): Make C-M-<char> keys work (Bug#8172).
-------------- This lime and the following will be ignored --------------

modified:
  lisp/ChangeLog
  lisp/term.el
2012-06-20 12:21:57 -04:00
David Röthlisberger
d34c18b1c9 * lisp/ido.el (ido-switch-buffer, ido-find-file): Fix up doc of C-j.
Fixes: debbugs:11201
2012-06-20 11:51:34 -04:00
Chong Yidong
6ff7caa835 Change term.el to use font-lock.
* term.el (term-mode): Set font-lock-defaults.
(term-move-columns, term-insert-char, term-emulate-terminal)
(term-erase-in-line, term-insert-spaces): Use font-lock-face.

Fixes: debbugs:7692
2012-06-20 17:21:06 +08:00
Chong Yidong
32f7f28e02 Fixes to window size calculations in term.el.
* term.el (term-window-width): Handle the case of a missing right
fringe.
(term-check-size): Use window-text-height.
(term-mode): Use define-derived-mode.  Minor cleanups.

Fixes: debbugs:8837
2012-06-20 16:34:21 +08:00
Michael Albinus
493c66882d * net/ange-ftp.el (ange-ftp-get-passwd): Bind
`enable-recursive-minibuffers'.
(ange-ftp-get-process): Throw if `non-essential' is non-nil.
2012-06-20 08:51:53 +02:00
Paul Eggert
8b5257e1d4 Fix misspelling of Dmitry's last name in ChangeLog. 2012-06-19 11:57:39 -07:00
David Röthlisberger
3f06ecf4f6 * lisp/ido.el (ido-find-file): Mention C-d binding in docstring.
Fixes: debbugs:11244
2012-06-19 14:17:14 -04:00
Stefan Monnier
ec6de1e2ee * src/minibuf.c (Fread_string): Bind minibuffer-completion-table. 2012-06-19 13:05:41 -04:00
Dmitry Antipov
28be1ada0f * alloc.c, bytecode.c, ccl.c, coding.c, composite.c, data.c, dosfns.c:
* font.c, image.c, keyboard.c, lread.c, menu.c, minibuf.c, msdos.c:
* print.c, syntax.c, window.c, xmenu.c, xselect.c: Replace direct
access to `contents' member of Lisp_Vector objects with AREF and ASET
where appropriate.
2012-06-19 20:56:28 +04:00
Glenn Morris
68f1241189 * lisp/progmodes/python.el (python-mode): Derive from prog-mode. 2012-06-19 09:04:47 -07:00
Kevin Gallagher
b382031894 In EDT emulator, allow updating of menu-bar Buffers menu.
* lisp/emulation/edt.el (edt-default-menu-bar-update-buffers)
(edt-user-menu-bar-update-buffers): New functions.
(edt-default-emulation-setup, edt-user-emulation-setup): Use them.
2012-06-19 15:05:44 +08:00
Chong Yidong
c6bf302224 Preserve tty top-frames under various window-changing operations.
* subr.el (with-selected-window): Preserve the selected window's
terminal's top-frame.

* window.el (save-selected-window): Likewise.

* frame.c (delete_frame): When selecting a frame on a different
text terminal, do not alter the terminal's top-frame.

* term.c (Ftty_top_frame): New function.

* xdisp.c (format_mode_line_unwind_data): Record the target
frame's selected window and its terminal's top-frame.
(unwind_format_mode_line): Restore them.
(x_consider_frame_title, display_mode_line, Fformat_mode_line):
Callers changed.
(x_consider_frame_title): Do not condition on HAVE_WINDOW_SYSTEM,
since tty frames can be explicitly named.
(prepare_menu_bars): Likewise.

Fixes: debbugs:4702
2012-06-19 14:49:50 +08:00
Glenn Morris
2fecccba2f Rename infodir to buildinfodir in doc/*/Makefile.in (bug#11737)
This also makes it clearer that it has no relation to the "infodir"
used by install.
2012-06-18 21:59:38 -04:00
Nelson Ferreira
4e2cc2f31f gnus-win.el (gnus-configure-frame): Pass an arg to window-dedicated-p 2012-06-18 23:12:10 +00:00
Paul Eggert
defd4196e7 Port byte-code-meter to modern targets.
* bytecode.c (METER_CODE) [BYTE_CODE_METER]: Don't assume
!CHECK_LISP_OBJECT_TYPE && !USE_LSB_TAG.  Problem with
CHECK_LISP_OBJECT_TYPE reported by Dmitry Andropov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00282.html>.
(METER_1, METER_2): Simplify.
2012-06-18 15:53:53 -07:00
Stefan Monnier
25f09295fa * lisp/progmodes/python.el (python-rx-constituents): Move backquote.
(python-skeleton-define, python-define-auxiliary-skeleton): Use `declare'.
2012-06-18 16:41:23 -04:00
Michael Albinus
6b11952a33 * minibuffer.el (read-file-name-default): Revert the patch from 2012-06-17. 2012-06-18 22:39:52 +02:00
Stefan Monnier
ee4b13300e * lisp/emacs-lisp/pcase.el (pcase--expand): Warn for unused pattern.
(pcase--u1, pcase--q1): Don't use apply-partially.
2012-06-18 15:23:35 -04:00
Glenn Morris
35647f79fd Fix python.el obsolescence versions
* lisp/progmodes/python.el (python-proc, python-buffer)
(python-send-receive, python-send-string): Fix obsolete versions.
2012-06-18 14:23:59 -04:00
Glenn Morris
a633e6a2b4 Add coding cookie 2012-06-18 14:04:21 -04:00
Stefan Monnier
1053a8716b Fix return value of `defun' and un-define it.
* src/data.c (Fdefalias): Return `symbol'.
* doc/lispref/functions.texi (Defining Functions):
* doc/lispref/macros.texi (Defining Macros): Un-define the return value of
`defun', `defmacro' and `defalias'.

Fixes: debbugs:11686
2012-06-18 11:57:41 -04:00
Martin Rudalics
b7e8d08167 Handle cases where buffer gets killed while running Fkill_buffer (Bug#11665).
* buffer.c (Fkill_buffer): Don't throw an error when the buffer
gets killed during executing of this function (Bug#11665).  Try
to always return Qt when the buffer has been actually killed.
(Vkill_buffer_query_functions): In doc-string say that functions
run by this hook should not change the current buffer.
2012-06-18 09:20:19 +02:00
Paul Eggert
7ea2b33947 Fix recently-introduced process.c problems found by static checking.
* process.c (write_queue_push, write_queue_pop, send_process):
Use ptrdiff_t, not int or EMACS_INT, for buffer lengths and offsets.
(write_queue_pop): Fix pointer signedness problem.
(send_process): Remove unused local.
2012-06-17 23:58:00 -07:00
Martin Rudalics
24b0cff0ba Completely remove stringp check in special-display-p.
* window.el (special-display-p): Completely remove stringp
check.  Suggested by Andreas Schwab <schwab@linux-m68k.org>.
2012-06-18 08:22:22 +02:00
Michael Albinus
298551496f * minibuffer.el (read-file-name-default): Bind non-essential' to t'.
* net/tramp.el (tramp-file-name-handler): Catch 'non-essential.

* net/ange-ftp.el (ange-ftp-gwp-start, ange-ftp-start-process):
* net/tramp-sh.el (tramp-maybe-open-connection):
Throw if `non-essential' is non-nil.
2012-06-17 20:54:39 +02:00
Glenn Morris
ddfbf826bc ChangeLog date fixes 2012-06-17 11:52:31 -07:00
Martin Rudalics
074633638d In special-display-p signal an error if BUFFER-NAME is not a string (Bug#11713).
* window.el (special-display-p): Signal an error if BUFFER-NAME
is not a string (Bug#11713).
2012-06-17 12:43:50 +02:00
Chong Yidong
96a313a1da Optimization to avoid redisplaying hidden terminal frames.
* xdisp.c (redisplay_internal): No need to redisplay terminal
frames that are not on top.
2012-06-17 18:11:39 +08:00
Troels Nielsen
20ca2e9451 Ensure correct ordering of process writes.
* process.c (make_process): Initialize write_queue.
(write_queue_push, write_queue_pop): New functions.
(send_process): Use them to maintain correct ordering of process writes.

Fixes: debbugs:10815
2012-06-17 17:00:37 +08:00
Paul Eggert
48d1354eb8 Spelling fixes. 2012-06-17 01:53:31 -07:00
Chong Yidong
eb4a8a9a88 Fix point motion bug in term-emulate-terminal.
* lisp/term.el (term-emulate-terminal): If term-check-size is called,
move point to the process mark without resetting point.

Fixes: debbugs:4635
2012-06-17 16:26:13 +08:00
Paul Eggert
310fbfa8e2 * lisp.h (eassert): Assume C89 or later.
This removes the need for CHECK.
(CHECK): Remove.  Its comments about always evaluating its
argument were confusing, as 'eassert' typically does not evaluate
its argument.
2012-06-17 01:21:25 -07:00
Paul Eggert
27bb1ca4b0 * coding.c (produce_chars): Use ptrdiff_t, not int. 2012-06-17 00:57:28 -07:00
Paul Eggert
9a900ca947 * xterm.c (x_draw_underwave): Check for integer overflow.
This pacifies gcc 4.7.0 -Wunsafe-loop-optimizations on x86-64.
2012-06-17 00:39:50 -07:00
Chong Yidong
41b7f8bc6c Merge changes from emacs-24; up to 2012-04-26T02:03:19Z!ueno@unixuser.org 2012-06-17 13:13:40 +08:00
Glenn Morris
82a25657c5 Minor edits for Face Attributes section of display.texi
* display.texi (Face Attributes): Copyedits.  Add a few cindex entries.
Overlining no longer behaves exactly like underlining.
2012-06-16 19:07:26 -07:00
Glenn Morris
db80bdc86f Mention face underwave 2012-06-16 18:49:50 -07:00
Glenn Morris
8da9479ce7 ChangeLog fix 2012-06-16 18:42:56 -07:00
Alp Aker
9b0e3ebaef Implement wave-style variant of underlining.
* doc/lispref/display.texi: Document new face attribute.
  * lisp/cus-face.el (custom-face-attributes): Add wave-style underline
  attribute.
  * lisp/faces.el (set-face-attribute): Update docstring.
  * src/dispextern.h (face_underline_type): New enum.
  (face): Add field for underline type.
  * src/nsterm.m (ns_draw_underwave): New function.
  (ns_draw_text_decoration): Use it.
  * src/w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave):
  New functions.
  (x_draw_glyph_string): Use them.
  * src/xfaces.c (Qline, Qwave): New Lisp objects.
  (check_lface_attrs, merge_face_ref)
  (Finternal_set_lisp_face_attribute, realize_x_face): Handle
  wave-style underline face attributes.
  * src/xterm.c (x_draw_underwave): New function.
  (x_draw_glyph_string): Use it.
2012-06-16 20:32:36 -04:00
Glenn Morris
40d8bcb854 NEWS fixes: positioning, copyedits 2012-06-16 10:56:44 -07:00
Glenn Morris
8826d473e6 ChangeLog position, case fixes 2012-06-16 10:45:09 -07:00
Juanma Barranquero
0fb52f118b src/makefile.w32-in: Update dependencies. 2012-06-16 15:44:20 +02:00