Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8faa9707
Commit
8faa9707
authored
May 31, 2000
by
Dave Love
Browse files
(mouse-save-then-kill-delete-region): Don't bind
before-change-function, after-change-function.
parent
bf9e8804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lisp/mouse.el
lisp/mouse.el
+2
-4
No files found.
lisp/mouse.el
View file @
8faa9707
...
@@ -953,14 +953,12 @@ This does not delete the region; it acts like \\[kill-ring-save]."
...
@@ -953,14 +953,12 @@ This does not delete the region; it acts like \\[kill-ring-save]."
;; Delete, but make the undo-list entry share with the kill ring.
;; Delete, but make the undo-list entry share with the kill ring.
;; First, delete just one char, so in case buffer is being modified
;; First, delete just one char, so in case buffer is being modified
;; for the first time, the undo list records that fact.
;; for the first time, the undo list records that fact.
(
let
(
before-change-function
after-change-function
(
let
(
before-change-functions
after-change-functions
)
before-change-functions
after-change-functions
)
(
delete-region
beg
(
delete-region
beg
(
+
beg
(
if
(
>
end
beg
)
1
-1
))))
(
+
beg
(
if
(
>
end
beg
)
1
-1
))))
(
let
((
buffer-undo-list
buffer-undo-list
))
(
let
((
buffer-undo-list
buffer-undo-list
))
;; Undo that deletion--but don't change the undo list!
;; Undo that deletion--but don't change the undo list!
(
let
(
before-change-function
after-change-function
(
let
(
before-change-functions
after-change-functions
)
before-change-functions
after-change-functions
)
(
primitive-undo
1
buffer-undo-list
))
(
primitive-undo
1
buffer-undo-list
))
;; Now delete the rest of the specified region,
;; Now delete the rest of the specified region,
;; but don't record it.
;; but don't record it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment