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

3266 Commits

Author SHA1 Message Date
Paul Eggert
a560b856b1 Plain copy-file no longer chmods an existing destination.
* doc/lispref/files.texi (Changing Files): Document this.
* etc/NEWS: Document this.
* src/fileio.c (realmask): Now a static var, not a local.
(barf_or_query_if_file_exists): New arg KNOWN_TO_EXIST.
Remove arg STATPTR.  All uses changed.
(Fcopy_file): Do not alter permissions of existing destinations,
unless PRESERVE-PERMISSIONS (renamed from
PRESERVE-EXTENDED-ATTRIBUTES) is non-nil.
Avoid race when testing for existing destinations and for
when input and output files are the same.
If changing the group fails, adjust both default and
preserved permissions so that access is not granted to the
wrong group.
(Fset_default_file_modes, init_fileio): Update realmask.
(Fdefault_file_modes): Use realmask instead of calling umask.

Fixes: debbugs:16133
2013-12-29 10:18:45 -08:00
Chong Yidong
4364185f73 Doc updates
* buffers.texi (Modification Time): Document visited-file-modtime change.

* modes.texi (Auto Major Mode): Document interpreter-mode-alist change.
2013-12-28 12:30:19 +08:00
Julien Danjou
765fe182c4 Enable ns-use-srgb-colorspace by default
See thread
https://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00706.html

* nsterm.m (syms_of_nsterm): Enable ns-use-srgb-colorspace by
default.
2013-12-27 11:43:11 +01:00
Chong Yidong
0f1d29342f More doc updates
* commands.texi (Reading One Event): Mention keyboard coding.

* functions.texi (Function Cells):
* eval.texi (Function Indirection): Update for the fact that
symbol-function no longer signals an error.

* keymaps.texi (Translation Keymaps, Translation Keymaps):
* nonascii.texi (Terminal I/O Encoding): Copyedits.

* data.c (Fsymbol_function): Doc fix.
2013-12-27 11:38:26 +08:00
João Távora
3b8d5131a3 Make Electric Pair mode smarter/more useful:
* lisp/electric.el: Pairing/skipping helps preserve
  balance. Autobackspacing behaviour. Opens extra newlines between
  pairs. Skip whitespace before closing delimiters.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Use new
  features.

* test/automated/electric-tests.lisp: New file.

* doc/emacs/programs.texi: Describe new features.

* lisp/simple.el: Pass non-nil interactive arg to newline call inside
  newline-and-indent.
2013-12-26 22:02:49 +00:00
Chong Yidong
2200a8c91d Update doc for advice changes.
* doc/lispref/advice.texi (Advising Functions, Defining Advice):
Special forms can no longer be advised.

* lisp/emacs-lisp/advice.el: Update commentary.
2013-12-26 11:27:45 +08:00
Chong Yidong
c93525876d Doc updates for several Emacs 24.4 changes.
* doc/lispref/commands.texi (Event Input Misc): Document new arg to
input-pending-p.

* doc/lispref/display.texi (Font Selection): Tweak example.

* doc/lispref/keymaps.texi (Active Keymaps): Re-organize the text.
(Searching Keymaps): Rewrite the pseudo-code for 24.4 changes.
(Controlling Active Maps): Note that set-transient-map uses
overriding-terminal-local-map.

* doc/lispref/nonascii.texi (Specifying Coding Systems): Don't refer to
emacs-mule-dos.
(Lisp and Coding Systems): Describe emacs-mule return value in
modern terms.

* doc/lispref/tips.texi (Coding Conventions): Tweak the coding system tip;
Emacs now uses utf-8 by default for Emacs Lisp source files.

* doc/emacs/glossary.texi (Glossary): Define MULE in modern terms.

* src/keyboard.c (Voverriding_terminal_local_map):
(Voverriding_local_map): Doc fix.

* src/keymap.c (Vemulation_mode_map_alists): Doc fix.
2013-12-25 18:24:52 +08:00
Chong Yidong
362397edd9 Document `eval' changes.
* doc/lispref/eval.texi (Eval): Document the LEXICAL arg to eval.

* doc/lispref/variables.texi (Variables, Void Variables): Use "scoping rule"
terminology consistently.
(Variable Scoping): Add index entries, and use "dynamic scope"
terminology in place of "indefinite scope" to reduce confusion.
(Lexical Binding): Document lexical environment format.
(Using Lexical Binding): Add index entries for error messages.
2013-12-25 11:05:11 +08:00
Chong Yidong
642d7ae8fc Minor edits to NEWS. 2013-12-24 12:14:17 +08:00
Ted Zlatanov
d8a2993d3c Noted `gnutls-verify-error', cfengine-mode, and package.el changes.
* NEWS: Updated for `gnutls-verify-error', cfengine-mode, and
package.el changes.
2013-12-23 08:05:27 -05:00
Xue Fuqiao
44fdad1ceb NEWS tweak. 2013-12-23 19:40:42 +08:00
Xue Fuqiao
2d778742a4 Document special-form-p' and macrop'.
* doc/lispref/eval.texi (Special Forms): Document `special-form-p'.

* doc/lispref/macros.texi (Simple Macro): Document `macrop'.
2013-12-23 19:27:29 +08:00
Xue Fuqiao
882b0b86e6 Fix an argument of `copy-file'.
* doc/lispref/files.texi (Changing Files): Fix an argument of `copy-file'.
2013-12-23 16:50:31 +08:00
Tassilo Horn
c2d736b4e7 Unmark electric-indent-mode; it requires more doc changes. 2013-12-23 09:11:14 +01:00
Xue Fuqiao
46291d111f Document TRIM in `split-string'.
* doc/lispref/strings.texi (Creating Strings): Document TRIM in
`split-string'.
2013-12-23 15:55:08 +08:00
Chong Yidong
8cd22a0818 Rename set-temporary-overlay-map -> set-transient-map
* lisp/subr.el (set-transient-map): Rename from
set-temporary-overlay-map.  Doc fix.

* lisp/face-remap.el (text-scale-adjust):
* lisp/indent.el (indent-rigidly):
* lisp/kmacro.el (kmacro-call-macro):
* lisp/minibuffer.el (minibuffer-force-complete):
* lisp/repeat.el (repeat):
* lisp/simple.el (universal-argument--mode):
* lisp/calendar/todo-mode.el (todo-insert-item--next-param):
* lisp/progmodes/f90.el (f90-abbrev-start): Callers changed.

* lisp/org/org.el (orgstruct-make-binding): Call set-transient-map
instead of old name set-temporary-overlay-map.

* doc/lispref/keymaps.texi (Controlling Active Maps): Renamed
set-temporary-overlay-map to set-transient map.  Doc fixes.
(Searching Keymaps): The transient keymap takes precedence.
2013-12-23 11:59:10 +08:00
Xue Fuqiao
bb962da29a Document hash-table-keys and hash-table-values'.
* doc/lispref/hash.texi (Other Hash): Document `hash-table-keys and
`hash-table-values'.
2013-12-23 07:19:42 +08:00
Xue Fuqiao
8fc36a6803 Document new bool-vector set operation functions.
* doc/lispref/sequences.texi (Bool-Vectors): Document new bool-vector
set operation functions.
2013-12-22 15:11:05 +08:00
Xue Fuqiao
05e8f1ae2e Document `get-pos-property'.
* doc/lispref/text.texi (Examining Properties): Document `get-pos-property'.
2013-12-22 14:25:57 +08:00
Xue Fuqiao
b345c56182 Document `enable-dir-local-variables'.
* doc/lispref/variables.texi (Directory Local Variables): Document `enable-dir-local-variables'.
2013-12-22 14:15:17 +08:00
Xue Fuqiao
57b837ab5f Document negative argument of replacement commands.
* doc/emacs/search.texi (Special Isearch):
(Query Replace): Document negative argument of replacement commands.
2013-12-22 13:57:32 +08:00
Xue Fuqiao
07e9eaa2dc Document `isearch-forward-symbol-at-point'.
* doc/emacs/search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'.
2013-12-22 13:36:29 +08:00
Xue Fuqiao
8d3c54a0b2 Document image-{next, previous}-file, plus some minor tweak. 2013-12-22 13:20:03 +08:00
Dmitry Gutov
6cddebc11b Integrate ruby-mode with electric-indent-mode better
* lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
(ruby--electric-indent-p): New function.
(ruby-mode): Use `electric-indent-functions' instead of
`electric-indent-chars'.
2013-12-22 06:57:00 +02:00
Xue Fuqiao
44b9b800f1 Another NEWS mark. 2013-12-22 12:55:31 +08:00
Xue Fuqiao
c9832cd810 Document `debugger-toggle-locals'.
* doc/lispref/debugging.texi (Debugger Commands): Document `debugger-toggle-locals'.
2013-12-22 11:36:04 +08:00
Xue Fuqiao
ced5cc2911 * doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'. 2013-12-22 10:55:43 +08:00
Xue Fuqiao
daef8ab140 Document `scroll-bar-adjust-thumb-portion'. 2013-12-22 09:45:13 +08:00
Xue Fuqiao
dc20a9d23d Add NEWS marks for focus-{in, out}-hook. 2013-12-22 09:17:48 +08:00
Xue Fuqiao
7899adea40 Add NEWS marks for VC. 2013-12-22 09:07:22 +08:00
Jan Djärv
41cf3d118e Customize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.
* etc/NEWS: Mention ns-use-srgb-colorspace.

* lisp/cus-start.el (all): Add ns-use-srgb-colorspace.

* src/nsfns.m (Fxw_color_values): Use colorUsingDefaultColorSpace.

* src/nsterm.h: Declare EmacsColor category.

* src/nsterm.m (NSColor): Implement EmacsColor category.
(ns_get_color): Use colorUsingDefaultColorSpace.
(ns_get_color, ns_term_init): Use colorForEmacsRed.
2013-12-21 17:11:55 +01:00
Chong Yidong
70c8f5ca14 Re-organize NEWS. 2013-12-21 16:34:49 +08:00
Juri Linkov
24da72738b * lisp/replace.el (read-regexp-defaults-function): New defcustom.
(read-regexp-suggestions): New function.
(read-regexp): Use `read-regexp-defaults-function' to get default values.
Use `read-regexp-suggestions'.  Add non-empty default to history
for empty input.
(occur-read-regexp-defaults-function): Remove function.
(occur-read-primary-args): Use `regexp-history-last' instead of
`occur-read-regexp-defaults-function'.

* lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): Remove function.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Use `regexp-history-last' instead of
`hi-lock-read-regexp-defaults-function'.  Doc fix.
(hi-lock-face-symbol-at-point): Replace `find-tag-default-as-regexp'
with `find-tag-default-as-symbol-regexp'.  Doc fix.
(hi-lock-read-regexp-defaults): Remove function.
(hi-lock-regexp-okay): Add check for null.

* lisp/progmodes/grep.el (grep-read-regexp): Use `grep-tag-default' for
the arg DEFAULTS.  Move formatting of the prompt to `read-regexp'.

* lisp/subr.el (find-tag-default-as-symbol-regexp): New function.
(find-tag-default-as-regexp): Move symbol regexp formatting to
`find-tag-default-as-symbol-regexp'.

Fixes: debbugs:14405
2013-12-20 21:55:56 +02:00
Tassilo Horn
3fbba716fb Document that =, <, <=, >, >= now accept one or many arguments.
* doc/lispref/numbers.texi (numbers): Document that =, <, <=, >, >= now accept
one or many arguments.
2013-12-20 19:41:31 +01:00
Bozhidar Batsov
3cbfb93540 * lisp/emacs-lisp/subr-x.el: (string-remove-prefix): New function.
(string-remove-suffix): New function.
2013-12-20 18:37:10 +02:00
Bozhidar Batsov
131e4695b2 * lisp/emacs-lisp/subr-x.el: Renamed from helpers.el. 2013-12-20 18:21:45 +02:00
Tassilo Horn
f60bb26a56 Move eshell visual commands change below existing eshell outline. 2013-12-20 17:11:17 +01:00
Tassilo Horn
3e2acc2540 Mark eshell changes as documented. 2013-12-20 17:06:15 +01:00
Tassilo Horn
30aafaf516 Document S-SPC' as alternative to scrolling down with DEL'.
* doc/emacs/rmail.texi: Document `S-SPC' as alternative to scrolling down
with `DEL'.

* doc/emacs/calendar.texi: Ditto.

* doc/emacs/display.texi: Ditto.

* doc/emacs/help.texi: Ditto.

* doc/misc/info.texi: Document `S-SPC' as alternative to `DEL' for
scrolling.

* doc/misc/woman.texi: Ditto.
2013-12-20 17:03:12 +01:00
Tassilo Horn
7b4ec5497f Document toggle-frame-maximized' and toggle-frame-fullscreen'.
* doc/emacs/frames.texi: Document `toggle-frame-maximized' and
`toggle-frame-fullscreen' with their respective keys.
2013-12-20 16:35:53 +01:00
Tassilo Horn
bac0e622f4 Mark `split-window' change from command to function as ---. 2013-12-20 16:26:38 +01:00
Tassilo Horn
2cd12d2869 Document buffer name uniquification changes.
* doc/emacs/buffers.texi: Document buffer name uniquification changes.
2013-12-20 16:18:50 +01:00
Tassilo Horn
75a1e03471 Document that `electric-indent-mode' is enabled by default.
* doc/emacs/indent.texi: Document that `electric-indent-mode' is enabled by
default.
2013-12-20 15:56:23 +01:00
Tassilo Horn
98104aea41 Document `blink-cursor-blinks'.
* doc/emacs/display.texi (Cursor Display): Document `blink-cursor-blinks'.
2013-12-20 15:51:53 +01:00
Tassilo Horn
2e6ddb2c95 Mark write-region-inhibit-fsync changes as documented. 2013-12-20 15:33:52 +01:00
Tassilo Horn
6f1de4d1f1 Document *Messages* buffer changes.
* doc/emacs/buffers.texi: Update list-buffers "screeshop" to show Messages
as major-mode.

* doc/lispref/display.texi: Document `messages-buffer'.
2013-12-20 15:28:01 +01:00
Tassilo Horn
dfff928448 Document `initial-buffer-choice' changes.
* doc/emacs/entering.texi: Document `initial-buffer-choice' changes.

* doc/emacs/misc.texi (arguments): Document `initial-buffer-choice' changes.

* doc/lispref/os.texi: Document `initial-buffer-choice' changes.
2013-12-20 15:18:21 +01:00
Tassilo Horn
bb8b90a69d Mark set-mark-default-inactive item as --- 2013-12-20 15:00:21 +01:00
Tassilo Horn
a34a0ac891 Document prefix key description in terms of ?
* doc/emacs/help.texi: Document that `?' now also shows subcommands of
prefix keys.
2013-12-20 14:55:44 +01:00
Rüdiger Sonderfeld
cbaece6a98 NEWS: Octave mode changes reflected in new manual.
See (info "(octave-mode)Top").
2013-12-20 13:31:20 +01:00