1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

107223 commits

Author SHA1 Message Date
Stefan Monnier
89534796c8 * lisp/url/url-http.el (url-http-parse-headers): Re-enable file-name-handlers.
Fixes: debbugs:11981
2012-08-14 10:54:51 -04:00
Michael Albinus
e1873bd0d8 * net/tramp-sh.el (tramp-open-shell): Cache the shell name.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Use cached shell name.
2012-08-14 16:48:28 +02:00
Fabián Ezequiel Gallina
925411b4ce * progmodes/python.el (python-shell-send-string):
(python-shell-send-setup-code): Do not use `format' with
`message'.
2012-08-14 10:39:27 -03:00
Dmitry Gutov
f063063a8a * lisp/progmodes/ruby-mode.el (ruby-syntax-methods-before-regexp): New const.
(ruby-syntax-propertize-function): Use it to recognize regexps.
Don't look at the text after regexp, just use the whitelist.
* test/indent/ruby.rb: Rearrange examples, add new ones.

Fixes: debbugs:6286
2012-08-14 08:38:11 -04:00
Dmitry Gutov
e636fafe20 * lisp/progmodes/ruby-mode.el: Improve percent literals.
(ruby-percent-literal-beg-re): New constant.
(ruby-syntax-general-delimiters-goto-beg): Rename to
`ruby-syntax-enclosing-percent-literal', improve literal type check.
(ruby-syntax-propertize-general-delimiters): Rename to
`ruby-syntax-propertize-percent-literal', it's a shorter and more
popular term.  Adjust comments everywhere.
(ruby-syntax-propertize-percent-literal): Only propertize when not
inside a simple string or comment.  When the literal is unclosed,
leave the text after it unpropertized.

Fixes: debbugs:6286
2012-08-14 08:28:12 -04:00
Barry O'Reilly
8e99d072be * src/keyboard.c (access_keymap_keyremap): Accept anonymous functions.
Fixes: debbugs:12022
2012-08-14 08:11:59 -04:00
Glenn Morris
96154d32d5 Auto-commit of generated files. 2012-08-14 06:17:30 -04:00
Martin Rudalics
08908acaa6 Don't call Fset_window_buffer from C code.
* frame.c (make_frame_without_minibuffer, make_minibuffer_frame)
(delete_frame, Fmake_frame_invisible, Ficonify_frame):
* minibuf.c (choose_minibuf_frame, read_minibuf):
* w32fns.c (x_create_tip_frame):
* xfns.c (x_create_tip_frame): Call set_window_buffer instead of
Fset_window_buffer (Bug#11984, Bug#12025, Bug#12026).
2012-08-14 10:44:24 +02:00
Andreas Schwab
e5b19827fa Fixes: debbugs:12197
* emacs-lisp/bytecomp.el (byte-recompile-file): When LOAD is
non-nil always load the compiled file if it exists.
2012-08-14 10:37:41 +02:00
Paul Eggert
56120d6f97 * intervals.c (offset_intervals): Remove obsolete comment. 2012-08-14 01:30:52 -07:00
Andreas Schwab
67b77c0b2f * gtkutil.c (find_rtl_image, update_frame_tool_bar): Use NILP. 2012-08-14 10:06:07 +02:00
Chong Yidong
a9f6f311c7 Fix highlight-regexp's use of Font Lock mode.
* hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock.
(hi-lock-set-pattern): When deciding whether to use font lock or
overlays, look at font-lock-mode instead of font-lock-fontified.
(hi-lock-mode, hi-lock-line-face-buffer, hi-lock-unface-buffer)
(hi-lock-face-buffer, hi-lock-face-phrase-buffer): Doc fix.

Fixes: debbugs:12168
2012-08-14 14:52:59 +08:00
Chong Yidong
b4599732c3 * gnus-art.el (article-display-face): Handle failure in gnus-create-image.
Fixes: debbugs:11802
2012-08-14 13:34:20 +08:00
Gergely Risko
f48b82fd19 Fix for undo recording in decode_coding.
* coding.c (decode_coding): Record buffer modification before
disabling undo_list.

Fixes: debbugs:11773
2012-08-14 13:09:35 +08:00
Dmitry Antipov
fd318b5407 Revert and cleanup some recent overlay changes.
* buffer.h (enum overlay_type): Remove.
(buffer_get_overlays, buffer_set_overlays): Likewise.
(buffer_set_overlays_before, buffer_set_overlays_after):
New function.  Adjust users.
(unchain_both): Add eassert.
2012-08-14 08:49:18 +04:00
Dmitry Antipov
41a62dd978 * gtkutil.c (update_frame_tool_bar): Use EQ where appropriate. 2012-08-14 08:47:05 +04:00
Daiki Ueno
7d806b1e67 * subr.el (internal--after-with-selected-window): Fix typo.
Fixes: debbugs:12193
2012-08-14 12:37:00 +08:00
Fabián Ezequiel Gallina
5beed58664 Use `completion-table-dynamic' for completion functions.
* progmodes/python.el
(python-shell-completion--do-completion-at-point)
(python-shell-completion--get-completions): Remove
functions.
(python-shell-completion-complete-at-point): New function.
(python-completion-complete-at-point): Use it.
2012-08-14 01:18:41 -03:00
Paul Eggert
76d0e68f8d Merge from gnulib.
This incorporates:
2012-08-05 extern-inline: also ignore -Wmissing-declarations
2012-08-13 20:15:52 -07:00
Paul Eggert
5884c3244a * gtkutil.c (xg_mark_data): Don't assume C99. 2012-08-13 19:39:59 -07:00
Jambunathan K
92cb3b044b * lisp/vc/vc-dir.el (vc-dir-hide-state): New command.
(vc-dir-hide-up-to-date): Route it to `vc-dir-hide-state'.

Fixes: debbugs:12159
2012-08-13 17:31:56 -04:00
Stefan Monnier
3c98c96295 * lisp/subr.el (function-get): Refine `autoload' arg so it can also
autoload functions for gv.el.
* lisp/emacs-lisp/edebug.el (get-edebug-spec): Adjust so it only
autoloads macros.

Fixes: debbugs:12191
2012-08-13 17:23:09 -04:00
Jan Djärv
ca06f160f4 Don't redraw tool bar for Gtk+ unless out of date.
* gtkutil.c (xg_frame_tb_info): New struct.
(TB_INFO_KEY): New define.
(xg_free_frame_widgets): Free xg_frame_tb_info for frame if present.
(xg_mark_data): Mark Lisp_Objects in xg_frame_tb_info.
(xg_create_tool_bar): Allocate and initialize a xg_frame_tb_info
if not present.
(update_frame_tool_bar): Return early if data in xg_frame_tb_info
is up to date. Otherwise store new data.
(free_frame_tool_bar): Free xg_frame_tb_info if present.
2012-08-13 21:12:26 +02:00
Stefan Monnier
aa7c6dbeba * lisp/color.el (color-xyz-to-lab, color-lab-to-xyz, color-cie-de2000):
Prefer pcase-let over destructuring-bind.
* lisp/vc/diff-mode.el (diff-remove-trailing-whitespace): Same.
Also, remove whitespace as we go, rather than after accumulating the
various places.
2012-08-13 15:10:35 -04:00
Stefan Monnier
89660017d1 * lisp/subr.el (internal--before-with-selected-window)
(internal--after-with-selected-window): Fix typo seleted->selected.
(with-selected-window): Adjust callers.
Reported by Dmitry Gutov <dgutov@yandex.ru>.
2012-08-13 10:12:47 -04:00
Bastien Guerry
31cd32c905 window.el: Minor dosctring enhancement (Bug#12172).
* window.el (special-display-popup-frame): Minor docstring
enhancement.  (Bug#12172)
2012-08-13 16:05:24 +02:00
Andreas Schwab
31e54db06a * tar-mode.el (tar-header-data-end): Only ignore size for files of
type 1-6.
(tar-header-block-summarize, tar-get-descriptor): Handle pax
extended headers.
2012-08-13 12:34:25 +02:00
Andreas Schwab
1b15d8adcf * files.el (hack-local-variables-filter): Remove useless eval. 2012-08-13 09:37:05 +02:00
Martin Rudalics
35cb9c06f7 Fix last change to with-selected-window.
* subr.el (with-selected-window): Fix last change.
2012-08-13 09:25:30 +02:00
Dmitry Antipov
7864a3f729 Use KSET for write access to Lisp_Object members of struct kboard.
* keyboard.h (KSET): New macro.
* callint.c, category.c, frame.c, keyboard.c, keyboard.h, macros.c:
* msdos.c, nsfns.m, nsterm.m, term.c, w32fns.c, w32term.c, xfns.c:
* xterm.c: Adjust users.
2012-08-13 07:44:27 +04:00
Dmitry Antipov
4c31be6153 Use BSET for write access to Lisp_Object members of struct buffer.
* buffer.h (BSET): New macro.
* buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c:
* fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c:
* minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c:
* window.c, xdisp.c, xfns.c: Adjust users.
2012-08-13 07:39:07 +04:00
Stefan Monnier
1439443be6 * lisp/subr.el (internal--before-with-seleted-window)
(internal--after-with-seleted-window): New functions.
(with-selected-window): Use them, to replace dependency on tty-top-frame.
2012-08-12 18:52:33 -04:00
Nobuyoshi Nakada
0d9e2599ec Merge from upstream ruby-mode.el
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary
binding for `newline'.
(ruby-move-to-block): When moving backward, stop at block opening,
not indentation.
* progmodes/ruby-mode.el (ruby-brace-to-do-end)
(ruby-do-end-to-brace, ruby-toggle-block): New functions.
* progmodes/ruby-mode.el (ruby-mode-map): Add binding for
`ruby-toggle-block'.
* test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening)
(ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.
2012-08-12 18:06:56 -04:00
David Engster
577d5eea9a * lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
file-name-directory and file-name-nondirectory internally.

Fixes: debbugs:11981
2012-08-12 13:35:15 -04:00
Stefan Monnier
ba10c48cc6 * lisp/ibuffer.el (ibuffer-do-toggle-read-only):
* lisp/dired.el (dired-toggle-read-only):
* lisp/buff-menu.el (Buffer-menu-toggle-read-only):
* lisp/bindings.el (mode-line-toggle-read-only):
* lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.
2012-08-12 13:29:53 -04:00
Andreas Schwab
9229c65855 * descr-text.el (describe-char): Put the overlays over the
"displayed as" character.
2012-08-12 11:35:57 +02:00
Jay Belanger
0fd0912879 calc/calc-units.el (math-default-units-table): Give it an
initial value. 
(math-put-default-units): Add options to put composite units and unit
systems in default units table.
(calc-convert-units): Send composite units to `math-put-default-units'
when appropriate.
2012-08-11 23:32:28 -05:00
Glenn Morris
38a414f0f1 CPP-DEFINES misc cleanup 2012-08-11 20:13:37 -07:00
Glenn Morris
2779e316c6 Remove some defines that are no longer present 2012-08-11 15:39:36 -07:00
BT Templeton
14ae423935 * src/lread.c (syms_of_lread): Initialize Vlexical_binding. 2012-08-11 11:34:01 -04:00
Jason Rumney
46fab912d8 Last change fixes Bug#12069 2012-08-11 22:50:28 +08:00
Jason Rumney
4ed1626da6 * lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
look up proxy credentials.
2012-08-11 22:48:37 +08:00
Jan Djärv
3d29b2ce5c * nsterm.m (not_in_argv): New function.
(application:openFile,	application:openTempFile:):
(application:openFileWithoutUI:, application:openFiles:): Open file
if not_in_argv returns non-zero.

Fixes: debbugs:12171
2012-08-11 11:10:08 +02:00
Jan Djärv
32bcadb476 Use GtkFontChooser on Gtk+ 3.2 and up.
* src/gtkutil.c (gtk_font_chooser_dialog_new, GTK_FONT_CHOOSER)
(gtk_font_chooser_set_font, gtk_font_chooser_get_font): Define
for Gtk+ versions less than 3.2.
(xg_get_font_name): Use those functions/macros here.
Reported by Frans Oilinki <moilinki@gmail.com>.
2012-08-11 10:54:35 +02:00
Glenn Morris
9ff9402d3a ChangeLog date fixes 2012-08-10 21:46:38 -07:00
Chong Yidong
5725bd2cc0 Merge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.com 2012-08-11 10:13:55 +08:00
Juanma Barranquero
5723992258 * lib/makefile.w32-in (STAT_TIME_H): New macro.
(FTOASTR_C, $(BLD)/stat-time.$(O), $(BLD)/timespec.$(O))
($(BLD)/u64.$(O)): Update dependencies.
2012-08-10 23:29:38 +02:00
Stefan Monnier
86b9724a1e * lisp/gnus/gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
Use defsetf.
2012-08-10 17:20:24 -04:00
Stefan Monnier
daa9f1a607 * lisp/emacs-lisp/rx.el (rx-constituents): Don't define as constant.
(rx-form): Simplify.
2012-08-10 17:03:10 -04:00
Dmitry Gutov
9d2ed8a27e * test/automated/ruby-mode-tests.el (ruby-should-indent):
Add docstring, check (current-indentation) instead of (current-column).
(ruby-should-indent-buffer): New function.
Add tests for `ruby-deep-indent-paren' behavior.
Port all tests from test/misc/test_ruby_mode.rb in Ruby repo.

Fixes: debbugs:12169
2012-08-10 16:25:43 -04:00