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
87bd269a
Commit
87bd269a
authored
May 18, 2008
by
Jay Belanger
Browse files
(calc-kill): Make sure that only the stack is operated on.
(calc-kill-region): Kill entire lines.
parent
b1d87c10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/calc/calc-yank.el
lisp/calc/calc-yank.el
+8
-1
No files found.
lisp/ChangeLog
View file @
87bd269a
2008-05-18 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-yank.el (calc-kill): Make sure that only the stack is
operated on.
(calc-kill-region): Kill entire lines.
2008-05-17 Glenn Morris <rgm@gnu.org>
* ezimage.el (ezimage-use-images): Drop support for Emacs < 21 and
...
...
lisp/calc/calc-yank.el
View file @
87bd269a
...
...
@@ -46,6 +46,7 @@
(
setq
num
(
1-
num
)))
(
setq
num
(
-
num
n
)
n
(
-
n
))))
(
calc-check-stack
num
)
(
let
((
stuff
(
calc-top-list
n
(
-
num
n
-1
))))
(
calc-cursor-stack-index
num
)
(
let
((
first
(
point
)))
...
...
@@ -82,9 +83,15 @@
(
calc-force-refresh
)
(
calc-set-command-flag
'no-align
)
(
let*
((
top-num
(
calc-locate-cursor-element
top
))
(
top-pos
(
save-excursion
(
calc-cursor-stack-index
top-num
)
(
point
)))
(
bot-num
(
calc-locate-cursor-element
(
1-
bot
)))
(
bot-pos
(
save-excursion
(
calc-cursor-stack-index
(
max
0
(
1-
bot-num
)))
(
point
)))
(
num
(
-
top-num
bot-num
-1
)))
(
copy-region-as-kill
top
bot
)
(
copy-region-as-kill
top
-pos
bot-pos
)
(
setq
calc-last-kill
(
cons
(
car
kill-ring
)
(
calc-top-list
num
bot-num
)))
(
if
(
not
no-delete
)
...
...
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