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
33155ffb
Commit
33155ffb
authored
Feb 02, 2001
by
Miles Bader
Browse files
(insert-image-file): When visiting an image, suppress the cursor in the
image buffer.
parent
1b66ab0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/image-file.el
lisp/image-file.el
+7
-4
No files found.
lisp/ChangeLog
View file @
33155ffb
2001-02-02 Miles Bader <miles@gnu.org>
* image-file.el (insert-image-file): When visiting an image,
suppress the cursor in the image buffer.
2001-02-01 Dave Love <fx@gnu.org>
* progmodes/f90.el (f90-mode): Remove startup message.
...
...
lisp/image-file.el
View file @
33155ffb
...
...
@@ -110,6 +110,7 @@ the command `insert-file-contents'."
(
when
(
and
(
or
(
null
beg
)
(
zerop
beg
))
(
null
end
))
(
let*
((
ibeg
(
point
))
(
iend
(
+
(
point
)
(
cadr
rval
)))
(
visitingp
(
and
visit
(
=
ibeg
(
point-min
))
(
=
iend
(
point-max
))))
(
data
(
string-make-unibyte
(
buffer-substring-no-properties
ibeg
iend
)))
...
...
@@ -122,11 +123,13 @@ the command `insert-file-contents'."
;; This a cheap attempt to make the whole buffer
;; read-only when we're visiting the file (as
;; opposed to just inserting it).
,@
(
and
visit
(
=
ibeg
(
point-min
))
(
=
iend
(
point-max
))
,@
(
and
visitingp
'
(
read-only
t
front-sticky
(
read-only
))))))
(
add-text-properties
ibeg
iend
props
)))
(
add-text-properties
ibeg
iend
props
)
(
when
visitingp
;; Inhibit the cursor when the buffer contains only an image,
;; because cursors look very strange on top of images.
(
setq
cursor-type
nil
))))
rval
))
(
defun
image-file-handler
(
operation
&rest
args
)
...
...
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