mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
Merge from origin/emacs-25
e65c307* src/font.c (QCuser_spec): Add missing colon to :user-spec.c8b868bDon't start the 'midnight' timer twice278c8a7* src/xwidget.c (Fxwidget_resize): Fix inappropriate use of X...e5c17f4Fix todo-mode category movementbc70fda* lisp/xt-mouse.el (xterm-mouse-utf-8): Add :version.cf40f38Ignore non-nil. non-cons values of unread-command-events8ee4c52Improve documentatuon of 'truncate-partial-width-windows'fb9a62c* src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU...1e1ea22Fix 'dired-goto-file' in Dired buffers produced by find-dired3a13472Fix map-put and map-delete for alists (Bug#23105)422c3daMinor copyedits of documentation for temporary displays90fb9b3Add customization option for using UTF-8 coordinates in xt-mousef14d463Minor doc string fixes in replace.ele70ee9dFix scrolling upwards with 'xwidget-webkit-browse-url'44782deFix display of Indic scripts326c64fFix splash screen display at startup7ab2a97; In NEWS mention new display of minibuffer completions windowa1cd84cDescribe temporary displays in Emacs manual5ec1056Avoid stray As next to IDLW icons45577d5Avoid GTK 3 crash with icons and maskse99ff6e* lisp/minibuffer.el (minibuffer-completion-help): Use fit-wi...077b78cDefine make_save_ptr_ptr unconditionally20a1003Preserve current buffer when popping up TTY menus7eba90cImprove font selection by family on MS-Windows73d213fComint, term, and compile now set EMACS9524ec5Ignore more merges when generating ChangeLogad250f2Sync with gnulibc0165eaResurrect GNUS-NEWS autogeneration1e5327c; Backport ChangeLog.2 fixes from mastere643977Make `toggle-frame-maximized' respect the dock on OS X (bug#2...38a43f1Fix bug in displaying header line with a box face91e6676Fix an Isearch var to be a string (Bug#23038)76ef522Fix (args-out-of-range 1) error in cursor-sensor--detect8a35f83Render empty <ul><li><ul> correctlyd8b2ce5Ignore invalid base64 encoded embedded images52ba24bFix <p> and <div> newlines with or without <li> in shrb8ea08bAvoid errors in 'newline'fc3cd53Fix Bug#23032dd2737bAdjudicate review comments in abbrevs.texi26f9c50Fixup the "normal" matcher; highlight global var symbols, too413e73b; Small theme additionscd950daHonor prefix arg in doc-view-next-line-or-next-pageed909c0; Spelling fixes6da3a6dPort to strict C99 offsetofde7601fPort to GTK with strict C11 compiler658aa2dPort to GTK with strict C99 compiler1df7173Avoid screen artifacts with new OS X visible bell after scrol...7a2edd3Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into...dca240aSuppress some Tramp tests for OSX, do not merge with master9094304* lisp/progmodes/xref.el (xref-buffer-name, xref--window): Mo...cbedfc2* lisp/gnus/mm-decode.el (gnus-format-message): Autoload it.005ac7c* lisp/mail/rmail.el (rmail-mime-entity-truncated): Declare.9ab03f2; Auto-commit of loaddefs files.56df617Address compilation warnings due to 2016-01-03 mml refactoring.a1ef911* lisp/emacs-lisp/smie.el (smie-indent-keyword): Don't burp i...79ae7fb* lisp/dired-x.el (dired-omit-here-always): Correct error mes...253929f* lisp/dired-x.el (dired-omit-here-always): Replace undefined...ce53389* lisp/xml.el (xml-parse-tag-1): Replace undefined function.d6d164fAvoid segfaults due to frame image cache being absentbc7f6f6Improve documentation of glyphless-character display6b6916e; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments.ee9a1f7Support safe navigation operator in non-SMIE indentation codec3ed95bMove xsd:base64Binary decoding fix to debbugs.el 0.9.12036be4Fix Ruby's operator precedence1d686c2(ruby-interpolation-inside-another-interpolation): New failin...7950e1dPort to clang 3.7.0 on x86-64218ae59* test/automated/package-test.el (package-test-signed): Tweak...ba33b7cSync with gnulib38b276dFix startup of "emacs -nw" on systems that CANNOT_DUMPdbfbeddDo not tokenize a comment before continuation as ';'0403620Don't misindent arguments of a method call inside continuatione6776f8* src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_ec...8475f3dASCII-only etc/NEWS etc.5cc6919Fix a cacheing bug, which led to inordinately slow c-beginnin...0ce37eaFix Isearch prompt when invoked with an argumentf3033d4Fix a typo in the Emacs manual4235d2dCurved quotes in etc/NEWS etc.26b56dcFix some single quotes in documentation80ec484Make lisp-completion-at-point's argument optional9d463aeTweak the left precedence of '=>'5b705bcIndent '.' relative to the first sibling expression04f5525Make '.' associative, for easier sexp navigationba24c99Revert "Simplify "Visit New File" to "New File""
This commit is contained in:
commit
c558890bde
30 changed files with 462 additions and 175 deletions
|
|
@ -123,33 +123,26 @@ MAP can be a list, hash-table or array."
|
|||
default)))
|
||||
|
||||
(defmacro map-put (map key value)
|
||||
"Associate KEY with VALUE in MAP and return MAP.
|
||||
"Associate KEY with VALUE in MAP and return VALUE.
|
||||
If KEY is already present in MAP, replace the associated value
|
||||
with VALUE.
|
||||
|
||||
MAP can be a list, hash-table or array."
|
||||
(macroexp-let2 nil map map
|
||||
`(progn
|
||||
(setf (map-elt ,map ,key) ,value)
|
||||
,map)))
|
||||
`(setf (map-elt ,map ,key) ,value))
|
||||
|
||||
(defmacro map-delete (map key)
|
||||
(defun map-delete (map key)
|
||||
"Delete KEY from MAP and return MAP.
|
||||
No error is signaled if KEY is not a key of MAP. If MAP is an
|
||||
array, store nil at the index KEY.
|
||||
|
||||
MAP can be a list, hash-table or array."
|
||||
(declare (debug t))
|
||||
(gv-letplace (mgetter msetter) `(gv-delay-error ,map)
|
||||
(macroexp-let2 nil key key
|
||||
`(if (not (listp ,mgetter))
|
||||
(map--delete ,mgetter ,key)
|
||||
;; The alist case is special, since it can't be handled by the
|
||||
;; map--delete function.
|
||||
(setf (alist-get ,key (gv-synthetic-place ,mgetter ,msetter)
|
||||
nil t)
|
||||
nil)
|
||||
,mgetter))))
|
||||
(map--dispatch map
|
||||
:list (setf (alist-get key map nil t) nil)
|
||||
:hash-table (remhash key map)
|
||||
:array (and (>= key 0)
|
||||
(<= key (seq-length map))
|
||||
(aset map key nil)))
|
||||
map)
|
||||
|
||||
(defun map-nested-elt (map keys &optional default)
|
||||
"Traverse MAP using KEYS and return the looked up value or DEFAULT if nil.
|
||||
|
|
@ -337,15 +330,6 @@ MAP can be a list, hash-table or array."
|
|||
(cdr pair)))
|
||||
map))
|
||||
|
||||
(defun map--delete (map key)
|
||||
(map--dispatch map
|
||||
:list (error "No place to remove the mapping for %S" key)
|
||||
:hash-table (remhash key map)
|
||||
:array (and (>= key 0)
|
||||
(<= key (seq-length map))
|
||||
(aset map key nil)))
|
||||
map)
|
||||
|
||||
(defun map--apply-hash-table (function map)
|
||||
"Private function used to apply FUNCTION over MAP, MAP being a hash-table."
|
||||
(let (result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue