1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00
Commit graph

114374 commits

Author SHA1 Message Date
Vitalie Spinu
ca65efcc2e comint.el (comint-output-filter): Fix rear-nonsticky property placement.
Fixes: debbugs:16010
2013-12-20 14:25:19 +08:00
Chong Yidong
a9574eb730 * faces.el (read-color): Minor fix for completion function. 2013-12-20 14:11:00 +08:00
Katsumi Yamaoka
a2f5f43193 lisp/gnus/gnus-spec.el (gnus-tmp-article-number): Remove duplicate defvar 2013-12-20 05:53:04 +00:00
Dmitry Gutov
b520f210b1 * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option. 
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.

* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.

* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.

Fixes: debbugs:16182
2013-12-20 07:20:33 +02:00
Jay Belanger
26b75b456e lisp/calc/calc.el (calc-enter, calc-pop): Use the variable
`calc-context-sensitive-enter'.

doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable
`calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
2013-12-19 22:53:24 -06:00
Lars Magne Ingebrigtsen
cf91cee781 * net/shr.el (shr-insert): Protect against infloops in degenerate tables. 2013-12-20 05:29:08 +01:00
Rüdiger Sonderfeld
51d971b429 octave-mode: Link to manual.
* lisp/progmodes/octave.el (octave): Add link to manual and octave
  homepage.
  (octave-mode-menu): Link to octave-mode manual.
2013-12-20 02:50:46 +01:00
Leo Liu
8c2e462acc * skeleton.el (skeleton-pair-insert-maybe): Disable newline
insertion using skeleton-end-newline.

Fixes: debbugs:16138
2013-12-20 08:38:02 +08:00
Juri Linkov
501158bcb9 * lisp/replace.el (occur-engine): Use `add-face-text-property'
to add the face property to matches and titles. 

* lisp/hi-lock.el (hi-green): Use lighter color "light green" closer to
the palette of other hi-lock colors.
(hi-lock-set-pattern): Prepend hi-lock face to the existing face.

Fixes: debbugs:14645
2013-12-20 02:07:08 +02:00
Juri Linkov
50ab1da6d6 * lisp/isearch.el (isearch-mode-map): Bind M-s e' to isearch-edit-string'.
Put :advertised-binding on `M-s c', `M-s r', `M-s e'.  (Bug#16035)
(minibuffer-history-symbol): Move variable declaration closer to
its usage.

* lisp/isearchb.el (isearchb): Add `event-basic-type' on `last-command-event'.
(Bug#14785)

* lisp/gnus/gnus.el (gnus-suppress-keymap):
* lisp/gnus/gnus-art.el (gnus-article-mode-map):
* lisp/gnus/gnus-group.el (gnus-group-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-backend-map):
Remove [backspace] key binding because it shadows DEL (bug#16035).

* lisp/gnus/mm-decode.el (mm-viewer-completion-map): Remove duplicate definition.
2013-12-20 00:12:12 +02:00
Juri Linkov
3d6e95e767 * lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function.
(log-edit-hook): Add it to :options.

Fixes: debbugs:16170
2013-12-19 23:10:41 +02:00
Juri Linkov
b41594fd4d * lisp/simple.el (eval-expression-print-format): Don't check for
command names and the last command.  Always display additional
formats of the integer result in the echo area, and insert them
to the current buffer only with a zero prefix arg.
Display character when char-displayable-p is non-nil.
(eval-expression): With a zero prefix arg, set `print-length' and
`print-level' to nil, and insert the integer values from
`eval-expression-print-format' at the end.  Doc fix. 

* lisp/emacs-lisp/lisp-mode.el (eval-print-last-sexp): Add arg
`eval-last-sexp-arg-internal'.  Doc fix.
(eval-last-sexp-1): Pass arg `eval-last-sexp-arg-internal' to
`eval-last-sexp-print-value'.  Doc fix.
(eval-last-sexp-print-value): Add arg `eval-last-sexp-arg-internal'.
Set `print-length' and `print-level' to nil when arg is zero.
(eval-last-sexp): Doc fix.
(eval-defun-2): Print the integer values from
`eval-expression-print-format' at the end.

* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print the integer
values from `eval-expression-print-format' at the end.

* lisp/ielm.el (ielm-eval-input): Print the integer
values from `eval-expression-print-format' at the end.

Fixes: debbugs:12985
2013-12-19 23:02:46 +02:00
Eli Zaretskii
4594572710 Fix last commit for TTYs. 2013-12-19 21:25:13 +02:00
Eli Zaretskii
5df389f530 Fix bug #16192 with highlight of display margins when region is active
src/xdisp.c (extend_face_to_end_of_line): Use default face, not the
 current text face, for extending the face of the display margins.
2013-12-19 21:06:53 +02:00
Rüdiger Sonderfeld
4094a7725a Update .gitignore.
It should probably be kept better in sync with .bzrignore.

* .gitignore: Ignore refcard temporaries and info/*.info files.
2013-12-19 19:00:05 +01:00
Eli Zaretskii
79f7284f96 Fix bug #16190 with documentation of capitalize-word.
src/casefiddle.c (Fupcase_word, Fdowncase_word, Fcapitalize_word):
 Doc fix.
2013-12-19 19:51:18 +02:00
Ted Zlatanov
8f2be364dc eww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close)
* net/eww.el (eww-exit, eww-close, eww-mode-map): Revert change of
2013-12-11T19:01:44Z!tzz@lifelogs.com.
2013-12-19 11:25:25 -05:00
Stefan Monnier
2230a6e314 * lisp/hl-line.el (hl-line-make-overlay): New fun. Set priority.
(hl-line-highlight, global-hl-line-highlight): Use it.
(hl-line-overlay): Use defvar-local.

Fixes: debbugs:16192
2013-12-19 09:00:55 -05:00
Jan Djärv
1269a68086 Make NS port use the normal dnd functions.
* lisp/term/ns-win.el: Require dnd.
(global-map): Remove drag items.
(ns-insert-text, ns-set-foreground-at-mouse)
(ns-set-background-at-mouse): Remove
(ns-drag-n-drop, ns-drag-n-drop-other-frame)
(ns-drag-n-drop-as-text, ns-drag-n-drop-as-text-other-frame): New
functions.

* src/nsterm.h (KEY_NS_DRAG_FILE, KEY_NS_DRAG_COLOR, KEY_NS_DRAG_TEXT):
Remove.

* src/nsterm.m (Qfile, Qurl): New.
(EV_MODIFIERS2): New macro.
(EV_MODIFIERS): Use EV_MODIFIERS2.
(ns_term_init): Remove font and color from DND, does not work on
newer OSX, and other ports don't have them.
(performDragOperation:): Handle modifiers used during drag.
Use DRAG_N_DROP_EVENT instead of NS specific events.
Remove global Lisp variables used to communicate with ns-win.el.
Remove font and color handling.
(syms_of_nsterm): Defsym Qfile and Qurl.

Fixes: debbugs:8051
2013-12-19 11:25:48 +01:00
Jan Djärv
680e6b8c5a Redo size constraint for NS so frames can span screens.
* nsterm.h (ns_output): Remove dont_constrain.

* nsterm.m (NSTRACE_SIZE, NSTRACE_RECT): New macros.
(ns_constrain_all_frames, x_set_offset): Remove assignment to
dont_constrain.
(updateFrameSize:, windowWillResize:toSize:): Add trace.
(constrainFrameRect): Remove special case nr_screens == 1.
Don't constrain size to size of view.
2013-12-19 09:40:11 +01:00
Glenn Morris
049638ad60 * lisp/emacs-lisp/ert.el (ert-select-tests): Fix string/symbol mixup.
Fixes: debbugs:16121
2013-12-19 00:14:37 -08:00
Jan Djärv
570c054a6f Generate HORIZ_WHEEL_EVENT.
* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
2013-12-19 08:38:08 +01:00
Dmitry Gutov
ce41edb426 * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
keywords to their parent.
2013-12-19 07:06:24 +02:00
Katsumi Yamaoka
c7734b728e lisp/gnus/ChangeLog: Fix timestamp of last commit 2013-12-19 04:48:52 +00:00
Katsumi Yamaoka
063ab4b028 lisp/gnus/gnus-uu.el: Fix temporary files deletion bug 2013-12-19 04:41:35 +00:00
Dmitry Gutov
7e1549c91d * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
first arg to be a string (fixed dead code), or an operator symbol.
(ruby-smie--forward-token): Tokenize ` @ ' before strings and
operator symbols.
(ruby-smie-rules): Remove parent token check in the `.' clause, it
did nothing.  Don't respond to `(:after ".")', it will be called
with :before anyway.  Remove the ` @ ' rule, it didn't seem to
change anything.  Only return indentation for binary operators
when they are hanging.  De-dent opening paren when its parent is
`.', otherwise it looks bad when the dot is not at bol or eol.

Fixes: debbugs:16182
2013-12-19 06:21:44 +02:00
Juri Linkov
3ee4cd6482 query-replace backward
* lisp/replace.el (query-replace-read-args): Split a non-negative arg
and a negative arg into separate elements.
(query-replace, query-replace-regexp, replace-string)
(replace-regexp): Add arg `backward'.  Doc fix.
(replace-match-maybe-edit): When new arg `backward' is non-nil,
move point to the beginning of the match.
(replace-search, replace-highlight): Use new arg `backward'
to set the value of `isearch-forward'.
(perform-replace): Add arg `backward' and use it to perform
replacement backward. 

* lisp/isearch.el (isearch-query-replace): Use a negative prefix arg
to call `perform-replace' with a non-nil arg `backward'.

Fixes: debbugs:14979
2013-12-19 02:29:41 +02:00
Juri Linkov
0cda6b7b13 * lisp/vc/log-edit.el (log-edit-hook): Add `log-edit-insert-message-template'
to the default list.  Move `log-edit-show-files' to the end.
Add more available functions to options.
(log-edit): Move default specific settings to
`log-edit-insert-message-template'.  Don't move point.
(log-edit-insert-message-template): New function.
(log-edit-insert-changelog): Add `save-excursion' and don't move point.

Fixes: debbugs:16170
2013-12-19 01:51:45 +02:00
Juri Linkov
b216f0a6cf * lisp/help-mode.el (help-mode-map): Bind "l" to help-go-back,
and "r" to help-go-forward for compatibity with Info.

Fixes: debbugs:16178
2013-12-19 01:40:12 +02:00
Paul Eggert
70695f1351 Add comment to my previous lread.c change. 2013-12-18 14:35:17 -08:00
Jan Tatarik
88312cfc59 lisp/gnus/gnus-icalendar.el (gnus-icalendar-identities): Make changing the value of gnus-icalendar-additional-identities work without restart 2013-12-18 22:11:40 +00:00
Paul Eggert
518c40a27c Minor fixes for recent openp changes.
* lisp.h (GCPRO7): New macro.
* lread.c (openp): Use bool for boolean; all callers changed.
Protect save_string from GC.  Don't assume that file descriptors
are nonzero.  Redo save_mtime comparison to avoid bogus GCC
warning about uninitialized variable.
2013-12-18 12:36:50 -08:00
Leo Liu
1d1c55dcdf * eshell/em-prompt.el (eshell-emit-prompt): Fix last change.
Fixes: debbugs:16186
2013-12-19 02:38:20 +08:00
Eli Zaretskii
39e896c178 Avoid compiler warnings in w32fns.c:emacs_abort.
src/w32fns.c (emacs_abort): Use intptr_t as argument of
 INT_BUFSIZE_BOUND, to avoid compiler warnings.
2013-12-18 18:21:17 +02:00
Eli Zaretskii
64e4c76edf Fix bug #16179 with ls-lisp emulation of the ls -s switch.
src/ls-lisp.el (ls-lisp-insert-directory): Don't modify %d and %f
 formats for displaying file sizes when the -s switch is given.
 Instead, compute a separate format for displaying the size in
 blocks, which is displayed in addition to the "regular" size.
 When -h is given in addition to -s, produce size in blocks in
 human-readable form as well.
2013-12-18 18:01:43 +02:00
Chong Yidong
18874304db * customize.texi (Custom Themes): Document custom-known-themes.
* custom.el (custom-available-themes): Doc fix.

Fixes: debbugs:15717
2013-12-18 22:54:24 +08:00
Tassilo Horn
b2984e39fc Add tilde before \ref{}s to tables.
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Reference
tables with ~\ref{...} instead of only \ref{...}.
2013-12-18 12:52:49 +01:00
Chong Yidong
0081bc8404 * cus-edit.el (custom-magic-alist): Fix "themed" description.
Fixes: debbugs:14348
2013-12-18 16:58:22 +08:00
Chong Yidong
a7ee9424b0 Fix loading of themes when NO-ENABLE is t.
* lisp/custom.el (custom-push-theme): If custom--inhibit-theme-enable
is non-nil, do not create a new entry in the symbol's theme-value
or theme-face property; update theme-settings only.

Fixes: debbugs:14664
2013-12-18 16:53:22 +08:00
Chong Yidong
8f942537eb * cus-theme.el (custom-new-theme-mode-map): Add bindings.
Fixes: debbugs:15674
2013-12-18 15:54:20 +08:00
Chong Yidong
fb891cc818 Minor fixes for Lispref's modes.texi
* modes.texi (Defining Minor Modes): Fix typo.
(Keymaps and Minor Modes): Fix binding convention.

Fixes: debbugs:11522 debbugs:14874
2013-12-18 13:31:11 +08:00
Chong Yidong
50ff2e0675 * replace.el (occur-engine): Avoid infloop.
Fixes: debbugs:7593
2013-12-18 13:10:58 +08:00
Kazuhiro Ito
83c60f60bf make-mode.el (makefile-fill-paragraph): Fix infloop.
Fixes: debbugs:13914
2013-12-18 13:01:30 +08:00
Shigeru Fukaya
ba874b6430 apropos.el (apropos-words-to-regexp): Fix algorithm.
* apropos.el (apropos-words-to-regexp): Fix algorithm.

Fixes: debbugs:13946
2013-12-18 12:46:49 +08:00
Glenn Morris
150622a173 * src/lread.c (openp): Further fix for previous. 2013-12-17 20:19:08 -08:00
Glenn Morris
09af58633c * src/lread.c (openp): Fix previous change (don't leak file descriptors) 2013-12-17 20:05:57 -08:00
Glenn Morris
123d014362 ChangeLog tweak 2013-12-17 19:25:52 -08:00
Glenn Morris
1f41ee56ac Add load-prefer-newer option, to load .el if newer than .elc
* src/lread.c (Fload): Pass load_prefer_newer to openp.
Don't bother checking mtime if openp already did it.
(openp): Add `newer' argument, to check all suffixes
and find the newest file.
(syms_of_lread) <load_prefer_newer>: New option. 

* src/callproc.c (call_process):
* src/charset.c (load_charset_map_from_file):
* src/emacs.c (init_cmdargs):
* src/image.c (x_create_bitmap_from_file, x_find_image_file):
* src/lisp.h (openp):
* lread.c (Flocate_file_internal):
* src/process.c (Fformat_network_address):
* src/sound.c (Fplay_sound_internal):
* src/w32.c (check_windows_init_file):
* src/w32proc.c (sys_spawnve): Update for new arg spec of openp.

* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.

* etc/NEWS: Mention this.

Fixes: debbugs:2061
2013-12-17 19:21:48 -08:00
Le Wang
e82134b1e4 * comint.el (comint-previous-matching-input-from-input): Retain point.
Fixes: debbugs:13404
2013-12-18 11:02:39 +08:00
Chong Yidong
33f5d4c15a * simple.el (append-next-kill): Doc fix (Bug#15995, Bug#16016). 2013-12-18 10:43:47 +08:00